web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / MS Graph for Teams Pre...
Power Automate
Answered

MS Graph for Teams Presence

(0) ShareShare
ReportReport
Posted on by 16

I am consented to MS Graph presence and when I test it from https://graph.microsoft.com/v1.0/me/presence using my credentials. 

However, when using same URI for GET, it always responds forbidden. (note I used both v1.0 and beta versions with same result)

 

Screenshot 2022-11-14 184356.jpg

 

Screenshot 2022-11-14 184625.jpg

 

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,480 Most Valuable Professional on at

    Hi @CODERx86,

     

    Like stated in the docs and the thread below. This method only supports delegated permissions:

    https://learn.microsoft.com/en-us/answers/questions/648061/graph-api-getpresence-returns-403-forbidden.html

     

    You could use a access token in your request though. Below is an example.

     

    accesstoken.png

     

    Also make sure that the base resource url and resource url values are pointing to the graph btw.

    baseresourceurl.png

     

    Below is one of my tests with that approach.

     

    accesstoken02.png

  • CODERx86 Profile Picture
    16 on at

    Thank you for sharing this. Any ideas to generate access token before expiry?

  • Verified answer
    VictorIvanidze Profile Picture
    13,079 on at

    Try to use a bit simpler (but unofficial) approach:

     

    VictorIvanidze_1-1668883136335.png

     

     

  • Isaacmanjr Profile Picture
    31 on at

    This is Genius. You saved me hours of trying to setup a app in Azure AD and get it talking with Power Automate. Kudos to you! 

  • jasonherman Profile Picture
    6 on at

    Can this be used to get the presence  of other users not "me"?

  • TomasG Profile Picture
    255 on at

    hi @Expiscornovus

    I try this, but can you shown how you get or make access token? Thanks.

  • IanIrvine Profile Picture
    29 on at

    did you ever get an answer to this part?

  • TomasG Profile Picture
    255 on at

    Hi @VictorIvanidze

    thanks for solution, but did you try another user ID, not "me"?? 

    When I use me, its work fine. But when I try get presence of anothner user, there start problem. With authentication and so on. 

    Can you show solution If it work with users' ID, not for "me"? 

    I have problem primary with access token :/. 

  • VictorIvanidze Profile Picture
    13,079 on at

    Hi @TomasG,

     

    the only way I know is using the SharePoint REST API:

    VictorIvanidze_2-1709813130751.png

    See also this (Kevin's answer): https://techcommunity.microsoft.com/t5/teams-developer/set-work-location-via-api-graph/m-p/3840009

     

     

     

  • TomasG Profile Picture
    255 on at

    Hi @VictorIvanidze

    thanks for quick reaction. 

    Please what you have in body section? You put the users' ID in the body?
    What's the schema of your body? And format of items in body. 

    Thanks a lot

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard