Graph API Presence should support Application permissions

Graph API Presence should support Application permissions
218

Upvotes

Upvote

 Apr 16 2021
86 Comments (86 New)
New

Currently only delegated user permissions are supported, and this is very sub-optimal for bots and service applications that need to monitor Teams presence of users.

ericrrichards_0-1618586145383.png

 

Comments
Copper Contributor

We also have a remote workforce and need to read presence for distributing support tickets and coordinating resources by our internal systems. Please keep me posted. We may need to simply find another solution if this can't be solved at app level.

Copper Contributor

Hello @Darrel Miller and/or @AnnieWang, specifically Annie, you mentioned that this change to App level permissions would be available sometime in this calendar year.  Is that still the case and is there an estimated quarter that it will be available?  Thanks.

Microsoft

@bwwelle thanks for the tag! It is slated to be available in Beta by the end of this calendar year, so CY23Q4 

Copper Contributor

@AnnieWang thanks for that clarity.

Copper Contributor

Hi @AnnieWang can you confirm if you are just referring to SET permissions or if this includes GET as well?

Copper Contributor

@AnnieWang please can you confirm that you're referring to application permissions on GET for the presence API that will be in beta at the end of this year? That is what this thread is about.

Thanks.

Microsoft

@MFerris4 and @DaveHmp this is only for GET presence API 

Copper Contributor

Brilliant news thankyou.

Copper Contributor

Hi @AnnieWang, thanks for keeping us up to date on this feature. As we are currently at a decision point whether to invest in expanding our delegated permission implementation or preparing for the announced app permission beta, would you be able to confirm the release is still on track for end of 2023?

Copper Contributor

Also in the same boat eagerly waiting for this to arrive in Beta.

Steel Contributor

It would be wonderful to see some kind of forward motion on anything Teams dev related...

Microsoft

@pmeixner @DaveHmp @ericrrichards GET presence with app token is still on track to being in beta by the end of this year

Copper Contributor
We're developing a UC system where we want to know if a user is available in Teams before calling him.
Application flow seems to be the best way to work in background, while Delegated flow requests a tricky and continuous interaction by user.
 
We're delaying this development waiting for this feature.
 
Hope it will come soon!
Thank you!
 
Copper Contributor

We've developed on Skype for Business but haven't fully transitioned to Teams for a while now because application permissions are not supported for Graph API Presence.

Copper Contributor

Hi @AnnieWang , following up on your comment in June that this would be available by the end of this quarter. Now we are near the end of the year, what date roughly can we expect this to be available? My team is keen to be able to utilise this (and it seems many others are the same). Thanks in advance!

Microsoft

@AlbePaol and @malford2175 thanks for waiting on this feature! 

 

@MFerris4 the rough date would be at the end of Dec.

Copper Contributor

Hello @AnnieWang 

are there any news about the development?

Do you feel the goal of end of December will be met?

We're still confident about it.

 

Thank you!

Copper Contributor

Hi @AnnieWang is there a release date for this?

Copper Contributor

This appears to be working now. Yay! I am able to use Application Permissions to pull the Presence of any user by UserID using v1.0. Also, the beta API seems to include Out of Office messages - super helpful for our Company Directory application. 

 

https://graph.microsoft.com/v1.0/users/$userId/presence

Microsoft

@Corey Richardson and everyone else on this thread.  Thank you all for your feedback.  You may sometimes think that these comments fall on deaf ears but they do not.  It took us too long to get here, but your feedback was a major influence on helping to prioritize this work over other features.

 

And thank you to @AnnieWang for stepping up and representing your team here when this feature request was already old enough to walk.  I know how hard it is to be the messenger between a frustrated community and product team that have a wide range of pressures driving the backlog of work.  

Microsoft

Thanks everyone for being patient about this feature. 

 

And @Darrel Miller couldn't have done it without you, so thank you as well! 

Copper Contributor

The documentation still claims this is not supported

 

https://learn.microsoft.com/en-us/graph/api/presence-get?view=graph-rest-1.0&tabs=http#permissions

 

Am I missing something?

Copper Contributor

This is working as expected so far via the communications/getPresencesByUserId call - so thanks to the team for working to get this out in Beta!

 

@AnnieWang Do we know when/if this will become available via a subscription? I did try to see if this was enabled already, but that doesn't seem to be the case unless I'm missing something?

 

Thanks!

Copper Contributor

Thanks @AnnieWang and the team for getting this out in beta and thanks for keeping us all in the loop in the meantime!

 

Do you have any estimate on subscription availability?

 

It would be really helpful for managing customer expectations! 

Copper Contributor

The documentation says for "Application" the "Least privileged permissions" is "Presence.Read.All", however in the App registration applications permissions Presence section only lists "Presence.ReadWrite.All". 

Microsoft

@ChrisPreston and @MFerris4 presence subscriptions to support app permissions is being considered in CY24H2 but there's no set date on this.