Graph API
4 TopicsGraph Lists and Sites Permission endpoint
I just found https://docs.microsoft.com/en-us/graph/api/site-post-permissions?view=graph-rest-1.0&tabs=http in the microsoft docs: "Create a new https://docs.microsoft.com/en-us/graph/api/resources/permission?view=graph-rest-1.0 object on a site." But what does this mean? I tried the endpoint but it seems not to be possible to give people permissions in SharePoint Online through this endpoint. What is this supposed to do exactly: POST https://graph.microsoft.com/v1.0/sites/{sitesId}/permissions Content-Type: application/json { "roles": ["write"], "grantedToIdentities": [{ "application": { "id": "89ea5c94-7736-4e25-95ad-3fa95f62b66e", "displayName": "Contoso Time Manager App" } }] } How can "apps" have permissions in SharePoint? I always thought only SharePoint groups/users or Azure AD groups or users can have permissions in SharePoint. What does it mean if an "app" gets permission? And why is this only allowed on site level? Can't I give an app also permission to just a library or list item. Where is my misunderstanding here? And is it possible at all to give certain users SharePoint permissions for a single library through the Graph API?874Views0likes0CommentsSharePoint Graph API Sharing Folder
I am currently creating a PowerApp for sharing files/folders in SharePoint. For sharing I am using the Graph API. I am using the following API endpoint: https://graph.microsoft.com/v1.0/sites/<site-ID>/drive/items/<item-ID>/invite Using the following body/JSON: { "recipients": [ { "objectId": "6a078e6c-cecd-4906-a1df-83f6fc1cbcae" } ], "message": "Here's the file that we're collaborating on.", "requireSignIn": true, "sendInvitation": true, "roles": [ "write" ] } For the Graph API, I created an app, with all the required delegated permissions. The authentication is done with a secret. So it works until the setting to limit external sharing to a Specific Group is set. Then I get the error message that sharing is disabled on the SharePoint site. Even though the app respectively the service principal is member in the group for external sharing. I know the following alternative, but it does not meet my requirements: Allow sharing only with existing guests and disable inviting guests by a normal user in Azure AD. Problem the sharing is possible with all existing guests. Does anyone have an idea how I can solve the problem or has any other suggestions?1.2KViews0likes0CommentsNeed help on Sharepoint query search building
Hi, I am trying to integration Servicenow with Sharepoint to find the files available in Sharepoint Sites which i acheived using "https://graph.microsoft.com/v1.0/drives/drive-id/root/search(q='sharepoint')" & it is working perfectly fine but it is working only for specific drive/site. Now the requirement is when user search with a query word it should search in all the sites available in our Sharepoint and give the response after lots of googling i found an article that i thought suits to me : https://docs.microsoft.com/en-us/sharepoint/dev/general-development/sharepoint-search-rest-api-overviewhttps://docs.microsoft.com/en-us/sharepoint/dev/general-development/sharepoint-search-rest-api-overview When i try with the given ex: GET http://mydev.sharepoint.com/_api/search/query?querytext='sharepoint' in Graph API explorer it is not even the running and i am not able to see any response. Later the tried the same by giving the End point URI in Servicenow and i am getting Invalid User & Passworkd & Response: 401. Note: My Servicenow instance is already configured with oAuth and it is working for specific Drive search but when i am trying with Sharepoint rest api search i am getting authentication issue do i need to proceed with other Authentication method ?894Views0likes0CommentsUnable to call graph API from SharePoint page
I am trying to call the graph API for fetching user profile information. The blog post I followed is http://julieturner.net/2017/01/extending-sharepoint-with-adal-and-the-microsoft-graph-api-part-1-the-setup/ My AAD app config is like: URL: https://tenant.sharepoint.com/ Reply-url: https://tenant.sharepoint.com/ Permissions: Graph API :: Read all users' full profiles However, I am getting an error of invalid reply url. Not sure what reply url is it trying to send the response to.2.2KViews0likes3Comments