MS Graph API
14 TopicsWhat is the gap like between Sharepoint REST and Microsoft Graph APIs?
Hello, I am developing a software to keep track of changes to files and folders made on Sharepoint. I am trying to figure out what API to use. My understanding is that Microsoft is giving more focus on Microsoft Graph API. I have been doing research on the differences between them. Based on older posts, it is my understanding that you couldn't do things with Graph API that you could do with Sharepoint Rest APIs. At least that was the case in the past, and the goal was to build Graph API to a point that you use Graph API for all that. Here is a link to Microsoft 365 https://www.m365devpodcast.com/e/sharepoint-api-and-microsoft-graph-with-jeremy-kelley-cathy-dew/. What is the gap like now? If I want to keep track of changes to made to Sharepoint files and folders. What is the most effective way to get those events? Through Sharepoint REST or Graph API? Thank you.13KViews0likes1CommentSPFx webparts not able to acquire token for Graph API in Teams app (Viva Connections)
Hi all, There is a very strange thing happening to a few webparts that we've build for one of our clients. We haven't seen this problem in other tenants, it seems to be related to this specific tenant. Maybe it's a setting, or maybe it's a bug. Hopefully someone can help us. This is the case: We have created a SharePoint intranet site and made it the root site. We then added the site to the Viva Connections integration in Teams, as an app. On this site we have a couple of custom webparts that we created. One of the webparts have been used in many intranet sites and haven't had these problems so far. The problem also isn't occurring on SharePoint itself. The problem is connecting to the Graph API, the token doesn't seem to be retrieved and thus the API requests are not even send to the Graph API. Environment details: Microsoft Egde version 115.0.1901.183 (Official build) (64-bit) SPFx 1.17.4 Node 16.15.1 NPM 8.11.0 The error I'm getting: Uncaught (in promise) Error: Token request previously failed at new t (chunk.aadTokenProvider_en-us_445a72773ba77a61be93.js:1:1514) at e._getTokenInternal (chunk.aadTokenProvider_en-us_445a72773ba77a61be93.js:1:3567) at e.getToken (chunk.aadTokenProvider_en-us_445a72773ba77a61be93.js:1:2372) at sp-pages-assembly_en-us_c3c628b67d521769ee27f473c0ed9543.js:76:647657 The request that might be the problem: https://tenant.sharepoint.com/_api/Microsoft.SharePoint.Internal.ClientSideComponent.Token.AcquireOBOToken?resource=%27https://graph.microsoft.com%27&clientId=%2775aff87b-45bf-41e7-84f3-552901a72ea0%27 Results in an 500 internal server error with the following message: { "odata.error": { "code": "-1, System.AggregateException", "message": { "lang": "en-US", "value": "One or more errors occurred." } } } I found this issue https://github.com/SharePoint/sp-dev-docs/issues/7884 which seems to be related to mine or at least gives the same error, but the resolution there doesn't apply here sadly. The manifest is already in the right format and with the correct data. Also cross referenced the manifest with other, working tenants At this point I have no clue on what the cause of the issue is, could any of you help me with this problem? Kind regards, ArjenSolved4.7KViews0likes4CommentsIssues with MS Graph Sites.Selected Permission in GCC High Tenant
Hello, I see the https://docs.microsoft.com/en-us/graph/permissions-reference#application-permissions-53 https://www.microsoft.com/en-us/microsoft-365/roadmap?filters=&searchterms=sites.selected MS Graph API permission in my GCC High tenant in the Azure portal when I create an app registration, but I'm not sure that it has been fully implemented yet as I receive an error when running this command: Invoke-RestMethod -Headers @{Authorization = "Bearer $token"} -Uri $getSitePermissionsURL -Method POST -Body $permissions -ContentType "application/json" Here is the $permissions variable: $permissions = @{ 'roles' = ('write') 'grantedToIdentities' = @{ 'application' = @{ 'id' = '...' 'displayName' = '...' } } } | ConvertTo-Json Here is the error: {"error":{"code":"BadRequest","message":"Resource not found for the segment | 'permissions'.","innerError":{"date":"2021-06-26T07:03:06","request-id":"...","client-request-id":"..."}}} I believe that I have everything correct, when I change the method to GET and the URL to "https://graph.microsoft.us/v1.0/sites/$siteID/" I do receive the site's data back, but there is no https://docs.microsoft.com/en-us/graph/api/resources/permission?view=graph-rest-1.0 shown: @odata.context : https://graph.microsoft.us/v1.0/$metadata#sites/$entity createdDateTime : 5/11/2021 11:28:09 PM description : ... id : ... lastModifiedDateTime : 6/26/2021 2:53:35 AM name : ... webUrl : ... displayName : ... parentReference : Here is an additional reference for background: https://developer.microsoft.com/en-us/graph/blogs/controlling-app-access-on-specific-sharepoint-site-collections/ Thanks in advance! RogueAgent3.6KViews0likes1CommentHow resolve 'Remote server returned '550 5.7.708 Service unavailable.' error while send an email
I am able to send mail through Graph API but it is not received by the recipient. I have added O365 licenses and given all the permissions to the application which was created in the Azure portal. An access token is generated differently for the @outlook.com domain and onmicrosoft.com. Please help!1.8KViews0likes1CommentUsing Graph API to create a OneNote tab in a Teams Channel
Hello, I'm trying to create a new tab in an existing channel that opens a OneNote notebook using Graph API. According to official documentation (https://learn.microsoft.com/en-us/graph/api/channel-post-tabs?view=graph-rest-1.0&tabs=http), the call should look like this: POST https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/tabs { "displayName": "OneNote", "email address removed for privacy reasons" : "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/0d820ecd-def2-4297-adad-78056cde7c78", "configuration": { "entityId": "<Notebook_id>", "contentUrl": "<OneNote_notebook_url>", "websiteUrl": "<OneNote_notebook_url>" } } It worked smoothly, but since recently, when you open the tab in Teams (desktop or web), it shows an error message stating that "the application can't be reached". In the end, the tab is created but OneNote notebook is not opened. Reading the official documentation here: https://learn.microsoft.com/en-us/graph/teams-configuring-builtin-tabs#onenote-tabs it mentions that when creating OneNote tabs, "configuration is not supported". Does this mean now you can't specify the OneNote notebook to open in the tab using Graph API? Any suggestions or recommendations? Thanks in advance! FerranSolved1.8KViews0likes14CommentsBookings created via Graph API
So I have an interesting problem. We are using Graph to create a bookings appointment in a bookings business within our org. When we use Graph the email that gets sent to the customer does not have a link to cancel/reschedule. However if you book an appointment using the bookings page the ensuing confirmation email will have the link. I check the appointments after they are created and only the one created via the bookings page have 'Let customer manage the appointment' checked. The ones created via the API do not. The services have it defaulted to allow for customers to cancel and reschedule. Is there something that we need to pass through graph when we are creating the appointment that specifically will turn this on? Really need the customers to have that link in the confirmation email.1KViews0likes0CommentsAzure AD Manual Sync using MS Graph API
Hi, Is there a MS Graph API endpoint for manually syncing details of applications in Azure AD to our application? When registering applications to our self-service application, the response of Azure AD took too long that caused a time-out on our application. I was wondering to manually sync the details to our application. Is there an available endpoint for that?869Views0likes0CommentsHow to access synced Edge profiles via MSGraph?
I've been really interested to find information on how to access Edge's synced profile data (History/Collections/Bookmarks/etc) via some remote MS API endpoint but none of my research/posting has gotten me anywhere Despite lots of googlefu (or bingfu? if that's a thing), everything I found about retrieving Edge profile/usage data involved interfacing with the local filesystem to query the installed browser's SQLite database (found in the internal program files). But seeing as Edge syncs data to a MS account, it must mean that it's stored somewhere in the MS cloud universe (although perhaps it's not being handled by the same MS accounts backend). I honestly just expected Edge data to be accessible on the MSGraph API but I've yet to find anything related to Edge profile data (or even future/abandoned/discussed integration goals). Maybe some hero on the inside could shed some light into this, any discussion would be very much appreciated! Reposted from Edge Insider community group732Views0likes0Comments