office 365
96 TopicsSet work location via API (Graph?)
Hi Graph Team! We would like to set the work location ("Office", "Remote") via Graph API endpoint. We want to synchronize the work location in Teams / O365 with information from our internal tool. This workaround here is not applicable to our use case: https://techcommunity.microsoft.com/t5/teams-developer/set-work-location-via-api-graph/m-p/3874804#M8092 There seems to be a high interest in this capability. Can you add this function to Microsoft Graph? Thanks! Jens3.8KViews2likes3CommentsQuery Regarding Duplicate Message IDs from Microsoft Graph API
Hello Microsoft Support Team, I am currently using the Microsoft Graph API to fetch email messages from the inbox of a my support email in my PHP application. However, I am encountering an issue where the API returns duplicate message IDs for emails. This is causing problems as emails with the same id are being processed multiple times, which results in duplicate ticket creation in my CRM system. To avoid this, I am currently checking and skipping duplicate IDs manually in my application. However, I would like to understand the root cause of these duplicates and whether there is an official recommendation or best practice to handle such cases effectively. Here are some additional details: API Endpoint: GET graph.microsoft.com/beta/users/$userEmailEncoded/mailFolders/Inbox/messages?\$top=20&\$orderby=receivedDateTime%20desc Issue: Duplicate message IDs (id) returned for the same email. Current Handling: I am skipping already processed emails using a tracking for message IDs to prevent duplicate ticket creation. Additionally, I have a few more queries regarding the use of internetMessageId and fetching attachments: Problem with internetMessageId: When I use internetMessageId, the internetMessageId of a replied message returns null. How can I use this ID effectively to manage or track message threads and replies? Attachments with internetMessageId: Is it possible to fetch attachments for a message using the internetMessageId? I am trying to retrieve attachments for a specific email using this ID, but I am not sure how to do this efficiently. Could you please advise on the following: Is there a recommended way to handle or filter out duplicate emails when fetching email data from the Graph API? Is there any mechanism in the API to ensure unique messages, especially when calling this endpoint frequently? How can I properly use internetMessageId for tracking message threads and replies, and why is it returning null for replied messages? Can I retrieve attachments using internetMessageId or is there another method for doing so? I would greatly appreciate any guidance or suggestions you can provide. Thank you for your time and assistance. Best regards, Krishna Adroja email address removed for privacy reasons124Views1like2CommentsReorder 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? Thanks99Views1like0CommentsGet-MgProfile : The term 'Get-MgProfile' is not recognized as the name of a cmdlet, function, script
Hi everyone, The cmdlet Get-MgProfile is no longer available after updating to v2.1.0 Even the link is no longer available: https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofile What is the replacement Graph SDK cmdlet to get the existing Microsoft Graph PowerShell SDK connection profile name? Thanks in advance.16KViews1like5CommentsMialbox Forwarding in Graph API
Is there away to retrieve the ForwardingSmtpAddress and DeliverToMailboxAndForward settings for a mailbox via the Graph API? I'm building an application that aggregates information about a user from multiple sources, one of them being AzureAD/M365. We want to show a support engineer the forwarding information that is set on a user's mailbox, but it seems the only way to get this is via PowerShell, which means settings up a runspace and powershell remoting, which I'd rather not do, sense I'm using the graph API already for license information.2.8KViews1like2CommentsIs there any REST API for creating new Excel (.xlsx) file in OneDrive cloud
I'm trying to create a new excel file in OneDrive with the below properties of the REST API call. URL: https://graph.microsoft.com//v1.0/me/drive/root/children Body: { "name": "MyFile.xlsx", "file": {}, "@microsoft.graph.conflictBehavior": "rename" } Header: Content-Type:application/json With the help of the above properties, I'm able to create the file in OneDrive. But it is created without size & If I try to open the workbook it says Couldn't Open the Workbook Error The workbook cannot be opened. Basically, whenever I create a new excel file from UI it has a default size of 7.81KB (Could be used for metadata of file). I have taken reference from https://docs.microsoft.com/en-us/graph/api/driveitem-post-children?view=graph-rest-1.0&tabs=http Is there anyone who knows how to resolve this issue?2KViews1like3Commentsgraph url scopes not supported for smtp and imap
For authentication, we are using below scopes as mentioned in the doc https://docs.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth offline_access https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/SMTP.Send We are able to get access_token and refresh_token successfully We want get userPrincipalName using graph api https://graph.microsoft.com/v1.0/me however we are getting error , looks like for hitting graph api only graph scopes would work. We tried with graph scopes urls, https://graph.microsoft.com/IMAP.AccessAsUser.All , https://graph.microsoft.com/SMTP.Send and able to hit graph api , however smtp and imap authentication is not working with these scopes. since Microsoft is deprecating outlook rest apis and asking to move to graph api then why graph scopes urls are not supported for SMTP and IMAP ?754Views1like0CommentsMicrosoft Search with office365 and internal enterprise application
Hi, Currently, I am working in an organization that is using office365 and they want to create a standalone application 'enterprise search' for the company to be as the main landing page whenever any user opens the browser. The requirement is to integrate the below sources into one single solution and display the result. - Emails (office365) - People (office365) - Document (office 365's one drive) - Content Server (Document store in OpenText content server) - Correspondence (internal system whereof exchanging memo where file store on SharePoint server) I know I can use GraphAPI to pull email, people and one drive information but how I can use my other non-office solutions to index and ready by graph api or any other services which Microsoft have (not in preview or beta?1.2KViews1like1Comment