Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

members subresource is missing under directoryRolesWithRoleTemplateId in 6.5.1 #1915

Open
papegaaij opened this issue Apr 3, 2024 · 1 comment
Labels
bug dependency:metadata Awaiting fix from core dependency project module

Comments

@papegaaij
Copy link

The Graph API supports listing members of a DirectoryRole via both its role-id and its roleTemplateId, like can be seen here: https://learn.microsoft.com/en-us/graph/api/directoryrole-list-members?view=graph-rest-1.0&tabs=http#http-request

In the new SDK, this would translate to these two statements:

client.directoryRoles().byDirectoryRoleId("roleId").members().get()
client.directoryRolesWithRoleTemplateId("roleTemplateId").members().get()

Of these, the first works fine, but the second is missing. DirectoryRolesWithRoleTemplateIdRequestBuilder does not have a members() method. In the Graph API, both constructs should behave identical, both for querying and manipulation (for example adding new members). The absence of this method forces us to split the call in two: first get the directory role by template id and then perform the actual operation.

@andrueastman
Copy link
Member

Depends on microsoft/OpenAPI.NET.OData#459

@Ndiritu Ndiritu added bug dependency:metadata Awaiting fix from core dependency project module labels Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dependency:metadata Awaiting fix from core dependency project module
Projects
None yet
Development

No branches or pull requests

3 participants