sharepoint-online

Microsoft Graph API in particular active directory OU

对着背影说爱祢 提交于 2020-08-11 02:00:20
问题 I can find all users with below graph api URL https://graph.microsoft.com/v1.0/users?$top=500 But it give response with all users of the organization, in which it come with certain service account users. We have all user in some particular OU some thing like this DC=domainName,DC=local,OU=domainName-HO So I want to know that is there any way to find users from particular OU 回答1: Based on Custom OU considerations and limitations, user accounts, groups, service accounts, and computer objects

Either scp or roles claim need to be present in the token using when application permissions to read sharepoint sites

筅森魡賤 提交于 2020-06-29 03:35:29
问题 I created an app in Azure and set it up to use Access and ID tokens. I want to connect to different tenants and read SharePoint sites. Here are the permissions I've requested and received Admin Consent for: For now, I have set up an App Secret but I do plan to move to a certificate later. I have this code to get the access token and I do get an access token back: const params = new URLSearchParams(); params.append("grant_type", "client_credentials"); params.append("scope", "https://graph

Microsoft Graph HonorNonIndexedQueriesWarningMayFailRandomly Error when filtering SharePoint Online lists

拈花ヽ惹草 提交于 2020-06-27 17:37:08
问题 I'm using ms-graph with SharePoint Online. I've a simple list with a single title column and 3 items. I use the following ms-graph call to filter items by title: https://graph.microsoft.com/v1.0/sites/root:/lists/list-guid/items?expand=fields&filter=startswith(fields/Title,%27fig%27) The result is an error message: Field 'Title' cannot be referenced in filter or orderby as it is not indexed. Provide the 'Prefer: HonorNonIndexedQueriesWarningMayFailRandomly ' header to allow this, but be