Closed N3XPW closed 3 months ago
Hi @N3XPW , this is likely an issue with the Presence API. Please post this on the Graph Q&A forum where the appropriate team will be able to help you out.
Hello @N3XPW
Thank you for reporting your concern. Unfortunately, we in the Graph Explorer team do not have any ownership of the APIs that are causing you issues. If you report this issue in the Microsoft Q&A forum, it will get routed to the appropriate team for them to triage. https://aka.ms/askgraph This issue will now be closed. If you encounter any issues with Graph Explorer in the future, please feel free to open an issue.
Describe the bug By using the grapAPI with the presence statusmessage function, i get the following error: "Cannot set the presence of another user... Status: 401 Unauthorized"
I tried this with the graphapi over https://developer.microsoft.com/en-us/graph/graph-explorer and with the Microsoft.Graph.Users.Actions Powershell Module.
For both with my admin user that has the required consensts . (Presence.ReadWrite)
To Reproduce in Powershell `Import-Module ActiveDirectory Import-Module Microsoft.Graph.Authentication Import-Module Microsoft.Graph.Users Connect-MgGraph Presence.ReadWrite
$params = @{ statusMessage = @{ message = @{ content = "Hey, this is a test" contentType = "text" } expiryDateTime = @{ dateTime = "2024-04-02T20:05:33.2079781" timezone = "Europe/Berlin" } } } Set-MgUserPresenceStatusMessage -UserId "UserID" -BodyParameter $params Disconnect-MgGraph`
To Reproduce in the graphAPI
url: https://graph.microsoft.com/v1.0/users/[UserID]/presence/setStatusMessage Body: { "statusMessage": { "message": { "content": "Hey, this is a test", "contentType": "text" } } }
Expected behavior Chaning the statusmsg in teams
Screenshots![image](https://github.com/microsoftgraph/microsoft-graph-explorer-v4/assets/54949122/abec1873-5530-4028-b5ad-1a820425469a)