Skip to content

Commit 74ee920

Browse files
Merge pull request #221055 from rolyon/rolyon-aadroles-custom-roles-graph-links
[Azure AD roles] Custom roles Graph API links
2 parents 4dc1786 + 664da75 commit 74ee920

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

articles/active-directory/roles/custom-create.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: active-directory
88
ms.workload: identity
99
ms.subservice: roles
1010
ms.topic: how-to
11-
ms.date: 10/06/2021
11+
ms.date: 12/09/2022
1212
ms.author: rolyon
1313
ms.reviewer: vincesm
1414
ms.custom: it-pro
@@ -104,14 +104,10 @@ $roleAssignment = New-AzureADMSRoleAssignment -DirectoryScopeId $resourceScope -
104104

105105
## Create a role with the Microsoft Graph API
106106

107-
1. Create the role definition.
108-
109-
HTTP request to create a custom role definition.
110-
111-
POST
107+
1. Use the [Create unifiedRoleDefinition](/graph/api/rbacapplication-post-roledefinitions) API to create a custom role.
112108

113109
``` HTTP
114-
https://graph.microsoft.com/v1.0/roleManagement/directory/roleDefinitions
110+
POST https://graph.microsoft.com/v1.0/roleManagement/directory/roleDefinitions
115111
```
116112
117113
Body
@@ -136,14 +132,10 @@ $roleAssignment = New-AzureADMSRoleAssignment -DirectoryScopeId $resourceScope -
136132
> [!Note]
137133
> The `"templateId": "GUID"` is an optional parameter that's sent in the body depending on the requirement. If you have a requirement to create multiple different custom roles with common parameters, it's best to create a template and define a `templateId` value. You can generate a `templateId` value beforehand by using the PowerShell cmdlet `(New-Guid).Guid`.
138134
139-
1. Create the role assignment.
140-
141-
HTTP request to create a custom role definition.
142-
143-
POST
135+
1. Use the [Create unifiedRoleAssignment](/graph/api/rbacapplication-post-roleassignments) API to assign the custom role.
144136
145137
```http
146-
https://graph.microsoft.com/v1.0/roleManagement/directory/roleAssignments
138+
POST https://graph.microsoft.com/v1.0/roleManagement/directory/roleAssignments
147139
```
148140
149141
Body

0 commit comments

Comments
 (0)