Giter VIP home page Giter VIP logo

Comments (5)

MuyangAmigo avatar MuyangAmigo commented on July 17, 2024

Hello @grumpykiwi, Thanks for sharing your use cases! Upon checking Graph API documentation, we have found an API support to retrieve all users presence status: https://docs.microsoft.com/en-us/graph/api/resources/presence?view=graph-rest-1.0

Here are some additional things that might be helpful:

Lastly, I'm interested in learning your experience of finding APIs you need for your project. We certainly want to improve API discoverability so any feedbacks are valuable to us!

from teams-toolkit.

grumpykiwi avatar grumpykiwi commented on July 17, 2024

I set my status in Teams to the attached.
Custom Status

When I retrieve my status via Graph Explorer or the Graph API with the GraphServiceClient (specifying Presence.Read.All as my required permission) I get this:

{ "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('{{ID}}')/presence/$entity", "id": "{{ID}}", "availability": "Available", "activity": "Available" }

As you can see, my custom status of "working from home" is not shown. This is the fundamental issue.

As far as finding APIs. Mostly googling or digging thru the docs. I have not found them easy to find. Far too often there are only examples for pure Rest calls. It would make my life easier if there was also an example C# example using the Graph API and graph service client.

Using the select keyword to filter output on group queries is especially lacking in real examples for C#. It takes a lot of trial and error to get the syntax right.

The documentation itself tends to be a bit vague on required parameter types sometimes. Permission Scope usage varies widely. Space delimited, string array, comma separated?. Yet again an example would help

This for example:
https://docs.microsoft.com/en-us/javascript/api/@microsoft/teamsfx/teamsusercredential?view=msteams-client-js-latest

Not very helpful at all.

Anyway. Hope this helps, but I really could do with that custom status

Thanks

from teams-toolkit.

MuyangAmigo avatar MuyangAmigo commented on July 17, 2024

Thank you for sharing your scenario and feedback! As we are not Graph expert, you might get better answers/suggestions from Graph Support: https://developer.microsoft.com/en-us/graph/support

We also hear your pain points of API discoverability, from a tooling perspective we may think of a way to provide better support, so stay tuned!

from teams-toolkit.

grumpykiwi avatar grumpykiwi commented on July 17, 2024

Thanks. I added a comment over at the Graph support portal. Seems I am not the only one requesting this feature.

from teams-toolkit.

MuyangAmigo avatar MuyangAmigo commented on July 17, 2024

We will close this as it's reported to the Graph Support channel. Please feel free to reopen if there is any issue.

from teams-toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.