microsoftgraph / microsoftgraph/msgraph-sdk-dotnet

Add ability to list directory role members via SDK

Open
#2,243 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug: metadata OpenApi
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.