Microsoft Graph PeopleManager.GetMyProperties does not refresh - sharepoint

I just added two new properties for the users using sharepoint, and then I edited the values.The problem is that when entering to <sharepointdomain>/_api/SP.UserProfiles.PeopleManager/getmyproperties the new properties appear, but their values are empty. I changed the values from the sharepoint admin page, on "users profiles" > "Manage Users Profiles". Why the changes are not being reflected on the rest api? Should I do something else?

Based on your description, you are not calling Microsoft Graph, but the SharePoint endpoint. With Microsoft Graph you can get user profile information aggregated from Azure Active Directory, Exchange and SharePoint. However, It does not expose custom properties you add on the SharePoint profile service, but it does have a mechanism (going into preview very soon) for you to add open extensions and schematized extensions. For more info check this video: https://channel9.msdn.com/Events/Connect/2016/213

Related

Sharepoint permissions conflict with Microsoft Graph "Application" type permissions?

I have a problem when I want to query a sharepoint list with Microsot Graph. I have no results.
The sharepoint list has these item-level permissions:
Read Access : Read items that were created by the user
Create and Edit access : Create items and edit items that were created by the user
Azure AD Graph Permissions
Type application : Sites.Read.All - Admin consent OK - I'm using this permission because I'm creating an API.
My credentials are correct because I can see another list of sharepoint that doesn't have these item-level permissions.
I also tried with Graph Explorer via azure but this time with a sharepoint admin user. I only have my account as a result
With the same account, if I request the sharepoint API directly on my browser (_api/web/lists/getbytitle('list')/items, I see all items of the sharepoint list.
Do you have any ideas on this behavior which limits access to data via microsoft graph ?
I was facing a similar issue and it seems to work with Sites.Manage.All (see Documentation) even though the documentation is very unclear at this point. Would be cool to hear back if that works for you.

How to change Microsoft SharePoint Data Encryption (Obfuscation) setting for GraphAPI reports?

By default when a new SharePoint site is created and reports are requested in graph API the result is returned with corrupted/modified data. This requires updating organization settings for the data conceal. Where can I find this setting?
Login to Admin Center. Navigate to Settings >> Org Settings >> Services >> Reports, uncheck “Display concealed user, group, and site names in all reports” checkbox and save to solve the issue.

Microsoft Teams: Provide 'Edit in Teams' for Sharepoint Documents in Custom Tab

We are writing a document organization system as a Custom Tab within Microsoft Teams and we are trying to replicate the 'Edit in Teams' option that´s provided by Microsoft Teams on the Files tab but it seems that we are unable to replicate the functionality. We are storing files within Sharepoint and have an edit URL, but we are unable to iframe this link due to CORS issues and can only open this link in a new browser. Does anyone have any thoughts on how we can open office documents within the teams client from a custom tab other than opening as a new window which means users have to keep switching in and out of Microsoft Teams.
By looking at what Microsoft teams is doing via the network requests, when you select ´Edit in Teams' it is getting hold of an wacUrlEdit link which appears to be iframeable which for example begins with https://euc-word-edit.officeapps.live.com/we/wordeditorframe.aspx?ui=en, however we can´t get hold of this wacUrlEdit link as it generated using an access token from https://api.spaces.skype.com, which according to https://stackoverflow.com/users/4406395/bill-bliss-msft on How to get an Azure Active Directory access token for https://api.spaces.skype.com isn´t publicly available, it´s only intended for the teams client. Fyi.. It also seems that Teams doesn´t IFrame this wacUrlEdit, but opens up a new url (at least in the web browser) via https://teams.microsoft.com/_#/docx/viewer/teams
I have read about WOPI host implementation, but this does seem like a lot of work to solve this and not totally sure this is the correct option considering these files are stored in Sharepoint Online.

Microsoft Teams custom website tab retrieve information about the Team and corresponding SharePoint site

I'm looking for a way to access the corresponding Microsoft Team and SharePoint site that is created from a custom website tab. So what I have is a custom website tab added to a Microsoft Teams site. This tab is a website tab and is pointing to the custom website app that I'm building.
What I want to do is from within the custom website I want to be able to access the corresponding SharePoint site that was created from the Microsoft Team and then I want to be able to use the SharePoint client object model to interact with the document library.
You'd have to have your tab / web app provide an auth flow, and ask your user to grant access to the Graph APIs, which can be used to access that content.

Editing User Profile w/ Forms Authentication

We're using Forms Authentication in SharePoint. When the account is created, the administrator can add some information, like name and address. But the required fields are username and email address.
When a user goes to their profile page, all the fields are blank and they are unable to edit them. I have read a number of articles discussing how to import profiles from another data store, or to sync profiles. This doesn't work for us, because we don't have another data store where these profiles are stored.
Will I just have to recreate the edit profile page and build a custom profile editor? Is this information exposed via SharePoint API? I don't think directly editing the database is a good solution.
If you log in to the "Shared Services administration" through the "Central Admin Tool" there is an option "Profile services policies". You can define in here what fields are user-overridable.

Resources