Is it possible to get the list of all the users that can access a Planner plan without having our users to grant the GroupMember.Read.All scope?

Damian Kobza 1 Reputation point
2024-06-05T10:54:29.6166667+00:00

To give more context to the issue, we have a Planner integration where we sync Planner plans to our platform. While we can see some members in the sharedWith property of the /details endpoint, the property does not include all of the members but, from my experience, only the ones that have interacted with the plan at least once, and groups linked to this plan (which are not useful without the GroupMember.Read.All). Is there any other way in which I can get this information? I'm sure that the sharedWith property included all of the users in a plan, even if they did not interact directly.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,257 questions
Azure Startups
Azure Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Startups: Companies that are in their initial stages of business and typically developing a business model and seeking financing.
382 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Carolyne-3676 211 Reputation points
    2024-06-25T09:00:20.8266667+00:00

    Have you tried to target the assignedLicenses Property? Please note that it is only returned using $select. This lists users assigned to a particular license and you will need the SKU id. https://learn.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0#properties

    Example of sample request:
    https://graph.microsoft.com/v1.0/users$select=id,mail,assignedLicenses&$filter=assignedLicenses/any(u:u/skuId eq chjdj-14ab-586c-4d350-a certain SKU id1d46) 

    Permissions Required Listed here: https://learn.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=http#permissions You can try this first using Graph Explorer.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.