Skip to content

Commit

Permalink
🐛 fix fetching of fields for role definitions (#4571)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock authored Aug 19, 2024
1 parent ad0a3ab commit 9276f04
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion providers/ms365/resources/rolemanagement.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ func fetchRoles(runtime *plugin.Runtime) ([]interface{}, error) {
}
ctx := context.Background()

resp, err := graphClient.RoleManagement().Directory().RoleDefinitions().Get(ctx, &rolemanagement.DirectoryRoleDefinitionsRequestBuilderGetRequestConfiguration{})
resp, err := graphClient.RoleManagement().Directory().RoleDefinitions().Get(ctx, &rolemanagement.DirectoryRoleDefinitionsRequestBuilderGetRequestConfiguration{
QueryParameters: &rolemanagement.DirectoryRoleDefinitionsRequestBuilderGetQueryParameters{
Select: []string{"id", "description", "displayName", "isBuiltIn", "isEnabled", "rolePermissions", "templateId", "version"},
},
})
if err != nil {
return nil, transformError(err)
}
Expand Down

0 comments on commit 9276f04

Please sign in to comment.