developer
105 TopicsProblem when sending out the invitation
I'm facing an issue where the invitation isn't being sent to the recipient, even though the API request runs successfully. I followed the tutorial in the link below, but the response I received is slightly different. https://learn.microsoft.com/en-us/graph/api/driveitem-invite?view=graph-rest-beta&tabs=http It has the Invitation in the return response My response result doesn't have the invitation. As result I did no receive any invitation email. Anyone can help me this?36Views0likes0CommentsPull out events from a calendar
Good morning, For a project I would have to pull out all the events from the different meeting rooms and integrate them into an HTML. However, when I search with https://graph.microsoft.com/v1.0/users/96d86e71-60d8-4d9a-acad-bd708de3e29a/events I get the error "The specified object was not found in the store." Could someone help me?17Views0likes1CommentTeams Missed Calls
Hi, I would like to know if there is a Graph API that gives me information if a peer to peer call between Teams users has not been successful. Or if a call has not been successful because the caller has abandoned the call, therefore it is a missed call. Regards. P.S. based on following documentation, I cannot find any information about what I'am searching for: List callRecords - Microsoft Graph v1.0 | Microsoft Learn6Views0likes0CommentsReorder Teams Channel tabs, move a 3rd tab to be the last tab?
I have an automate power automate flow which Create a Teams site, channels & tabs. now inside the General channel, we add the following custom tabs (Active DashBoard, Incident -12: Tasks and Template & training), as follow:- but i will get those 3 built-in tabs; Posts, Files and Notes.. now how i can move the Notes tab to be last tab ? using Graph API? Thanks57Views0likes0CommentsGraph API - GET /authentication/methods only return default method
Hi All, I need to list / manage MFA authentication method of users that invited from external AD (Home Tenant) through my resource tenant via Graph API. But GET API only return default authentication method (passwordAuthenticationMethod). I grantedUserAuthenticationMethod.Read.All API permission to my application. Is this because user account is from external AD (external to my resource tenant) or do I missing something here?162Views0likes2CommentsUsing microsoft graph to pull calendar data weekly
Hello- I've building an app that requests calendar access from users with Graph API. I am hoping to request permissions once and then pull calendar data weekly but I'm not sure if this is possible. I'm using the python ms-graph sdk and the interactive authentication client to request access. I am seeing some things about offline_access scope providing a refresh token but unsure how it works and the docs I found haven't been helpful. Any help would be appreciated!100Views0likes0CommentsHow to get the days for re-authenticate from Azure directory
Hello Community, I was trying to fetch the time for which a device authentication can be trusted. The problem is that there is no conditional policy set and the policies for token issuance, and lifetime return an empty array using Graph API (pretty sure, they are not set either). I see the number of days required to re-authenticate using a particular device here. Is there a way to extract this "30" days interval usingGraph API? Thank you.134Views0likes1CommentNot all calendars in the "People's calendars" group are included in the list
When I try to get the list of all callendars in the "People's calendar" group some calendars are not included. The API call: me/calendarGroups/{calendargroup Id of peoples-calendar-group}/calendars Calendars which are added by the following steps are not included, but are shown in the OWA client: - Gotohttps://outlook.office.com/calendar/view/week - Click "Add calendar" - Click "Add from directory" - Select your account - Select a person who's calendar you want to add (in my case "John Doe") In outllook it will show you the "John Doe" calendar, but when getting the list via the graph API all other calendars are returned, except for John Doe. How can I retrieve the full list?123Views0likes0CommentsMicrosoft Graph API Sharepoint Search
I have written an some python to send a request to the graph API to search a OneDrive for files containing keywords. def get_results(keywords, drive_id, next_url=None, total_results=[]): search_query = ' AND '.join(keywords) top = 500 # Set the desired number of results to retrieve select_properties = "id,name,createdDateTime" # Example properties to select if not next_url: base_search_url = f"https://graph.microsoft.com/v1.0/drives/{drive_id}/root/search(q=\'{search_query}\')" top_search = f"$top={top}" search_url = f"{base_search_url}?{top_search}" else: search_url = next_url headers = { 'Authorization': 'Bearer {}'.format(access_token), 'Content-Type': 'application/json' } response = requests.get(search_url, headers=headers) search_results = response.json() total_results += search_results.get('value', []) if '@odata.nextLink' in search_results: next_url = search_results['@odata.nextLink'] get_results(keywords, drive_id, next_url, total_results) return total_results However, when I run this, the result is that I get around 7k results, but I know for a fact there should be around 10k results. When I search the files in the OneDrive using body: keyword1 AND keyword2 I get all files returned, but with this method using the skip tokens, some files are not returned. On top of this, I also get duplicates, so if the 7k files, only 6k are unique. I'm not sure what I've done wrong with this method, I'm wondering if I could get some assistance on this. Thanks 🙂785Views0likes1Commentunable to provide consent
Hi All, I am facing an issue with API permissions. I have an Azure App Registration with the following Microsoft Graph API permissions. Let's say the App Registration name is TESTAPP and the Client ID is xxxx-xxxx-xxxxx-xxxxx. I have a SharePoint site, let's say mysite1, and I am trying to provide permissions in the following way: I obtained the site ID using the following URL: https://mydomain.sharepoint.com/sites/mysite1/_api/site/id. Let's say the site ID i got is 11111-111-1111-11221 i have logged into https://developer.microsoft.com/en-us/graph/graph-explorer/ Post-->v1.0-->https://grapsh.microsoft.com/v1.0/sites/{11111-111-1111-11221}/permissions Request headers: Key:application/json Request Body: { "roles": [ "write" ], "grantedToIdentities": [ { "application": { "id": "xxxx-xxxx-xxxxx-xxxxx", # This is my app regisration id "displayName": "TESTAPP" } } ] } When i click modify permissions and search for sites permissions, i am unable to provide consent, its grayed out. I am a global admin and i have full access on the SharePoint site. Please guide me.371Views0likes0Comments