microsoftgraph / microsoftgraph/msgraph-sdk-dotnet
Add ability to list directory role members via SDK
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 789
- Forks
- 264
- Avg merge
- 15h 17m
- Merged PRs (30d)
- 3
Description
Based on the Directory role - List members article, there is a possibility to query directory role members using roleTemplateId:
GET https://graph.microsoft.com/v1.0/directoryRoles(roleTemplateId='43a63cc2-582b-4d81-a79d-1591f91d5558')/members
However, Graph SDK only allows querying directory role members using the role id, not role template id:
var result = await graphClient.DirectoryRoles["{directoryRole-id}"].Members.GetAsync();
I suggest adding a feature to the SDK to allow getting the directory role members using the role template id.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the graphClient.DirectoryRoles["{directoryRole-id}"].Members.GetAsync() entry point and compare it with the linked Microsoft Graph Directory role - List members documentation. Determine how the SDK should expose a roleTemplateId-based members request, then verify that the resulting request matches the documented directoryRoles(roleTemplateId='...')/members endpoint.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100