Custom Presence or Callback method for Presence

%3CLINGO-SUB%20id%3D%22lingo-sub-1434110%22%20slang%3D%22en-US%22%3ECustom%20Presence%20or%20Callback%20method%20for%20Presence%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1434110%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everyone%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20trying%20to%20build%20an%20app%20where%20I%20could%20listen%20for%20a%20change%20when%20the%20presence%20of%20current%20user%20is%20changed.%20For%20instance%2C%20when%20user%20switch%20from%20available%20to%26nbsp%3B%20busy%2C%20do%20not%20disturb%2C%20be%20right%20back%20or%20appear%20away.%20I%20can't%20find%20a%20method%20in%20microsoft%2Fteams-js%20sdk.%20Is%20there%20a%20way%20to%20do%20it%3F%3C%2FP%3E%3CP%3EAlso%2C%20I'm%20not%20sure%20if%20it%20is%20possible%20but%20is%20there%20a%20way%20where%20we%20could%20add%20a%20custom%20Presence%20separate%20from%20default%20Presence%20(available%2C%20busy%2C%20do%20not%20disturb%2C%20be%20right%20back%20and%20appear%20away)%3F%20then%20I%20can%20also%20add%20callback%20for%20this%20presence%20changed.%20It%20would%20be%20nice%20if%20this%20is%20possible.%20Please%20let%20me%20know.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1434110%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPresence%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Epresence%20status%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETab%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1435176%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20Presence%20or%20Callback%20method%20for%20Presence%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1435176%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F685623%22%20target%3D%22_blank%22%3E%40avillanueva%3C%2FA%3E%26nbsp%3BThis%20feature%20is%20currently%20not%20available%20via%20the%20graph%20API%2C%20We%20are%20currenlty%20working%20on%20a%20webhook%20to%20notify%20when%20there%20is%20a%20change%20in%20the%20presence.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi everyone,

 

I'm trying to build an app where I could listen for a change when the presence of current user is changed. For instance, when user switch from available to  busy, do not disturb, be right back or appear away. I can't find a method in microsoft/teams-js sdk. Is there a way to do it?

Also, I'm not sure if it is possible but is there a way where we could add a custom Presence separate from default Presence (available, busy, do not disturb, be right back and appear away)? then I can also add callback for this presence changed. It would be nice if this is possible. Please let me know.

 

Thank you.

1 Reply

@avillanueva This feature is currently not available via the graph API, We are currenlty working on a webhook to notify when there is a change in the presence.