You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The Graph API supports listing members of a DirectoryRole via both its
role-id
and itsroleTemplateId
, like can be seen here: https://learn.microsoft.com/en-us/graph/api/directoryrole-list-members?view=graph-rest-1.0&tabs=http#http-requestIn the new SDK, this would translate to these two statements:
Of these, the first works fine, but the second is missing.
DirectoryRolesWithRoleTemplateIdRequestBuilder
does not have amembers()
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.The text was updated successfully, but these errors were encountered: