Skip to content

Commit e216e1b

Browse files
authored
Update howto-add-app-roles-in-apps.md
1 parent e483fb3 commit e216e1b

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

articles/active-directory/develop/howto-add-app-roles-in-apps.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.service: active-directory
99
ms.subservice: develop
1010
ms.workload: identity
1111
ms.topic: how-to
12-
ms.date: 09/27/2022
12+
ms.date: 09/27/2023
1313
ms.author: cwerner
1414
ms.reviewer: kkrishna, jmprieur
1515
ms.custom: aaddev
@@ -73,27 +73,6 @@ If you have not already done so, you'll need to assign yourself as the applicati
7373
>
7474
> Ensure that both the API application and the application you want to add permissions to both have an owner, otherwise the API will not be listed when requesting API permissions.
7575
76-
## Assign users and groups to roles
77-
78-
Once you've added app roles in your application, you can assign users and groups to the roles. Assignment of users and groups to roles can be done through the portal's UI, or programmatically using [Microsoft Graph](/graph/api/user-post-approleassignments). When the users assigned to the various app roles sign in to the application, their tokens will have their assigned roles in the `roles` claim.
79-
80-
To assign users and groups to roles by using the Microsoft Entra admin center:
81-
82-
1. Sign in to the [Microsoft Entra admin center](https://entra.microsoft.com) as at least a [Cloud Application Administrator](../roles/permissions-reference.md#cloud-application-administrator).
83-
1. If you have access to multiple tenants, use the **Directories + subscriptions** filter :::image type="icon" source="./media/common/portal-directory-subscription-filter.png" border="false"::: in the top menu to switch to the tenant that contains the app registration to which you want to add an app role.
84-
1. Browse to **Identity** > **Applications** > **Enterprise applications**.
85-
1. Select **All applications** to view a list of all your applications. If your application doesn't appear in the list, use the filters at the top of the **All applications** list to restrict the list, or scroll down the list to locate your application.
86-
1. Select the application in which you want to assign users or security group to roles.
87-
1. Under **Manage**, select **Users and groups**.
88-
1. Select **Add user** to open the **Add Assignment** pane.
89-
1. Select the **Users and groups** selector from the **Add Assignment** pane. A list of users and security groups is displayed. You can search for a certain user or group and select multiple users and groups that appear in the list.
90-
1. Once you've selected users and groups, select the **Select** button to proceed.
91-
1. Select **Select a role** in the **Add assignment** pane. All the roles that you've defined for the application are displayed.
92-
1. Choose a role and select the **Select** button.
93-
1. Select the **Assign** button to finish the assignment of users and groups to the app.
94-
95-
Confirm that the users and groups you added appear in the **Users and groups** list.
96-
9776
## Assign app roles to applications
9877

9978
Once you've added app roles in your application, you can assign an app role to a client app by using the Microsoft Entra admin center or programmatically by using [Microsoft Graph](/graph/api/user-post-approleassignments). This is not to be confused with [assigning roles to users](../roles/manage-roles-portal).
@@ -146,6 +125,27 @@ Developers can use app roles to control whether a user can sign in to an app or
146125

147126
App roles are preferred by developers when they want to describe and control the parameters of authorization in their app themselves. For example, an app using groups for authorization will break in the next tenant as both the group ID and name could be different. An app using app roles remains safe. In fact, assigning groups to app roles is popular with SaaS apps for the same reasons as it allows the SaaS app to be provisioned in multiple tenants.
148127

128+
## Assign users and groups to Microsoft Entra roles
129+
130+
Once you've added app roles in your application, you can assign users and groups to [Microsoft Entra roles](../roles/permissions-reference). Assignment of users and groups to roles can be done through the portal's UI, or programmatically using [Microsoft Graph](/graph/api/user-post-approleassignments). When the users assigned to the various roles sign in to the application, their tokens will have their assigned roles in the `roles` claim.
131+
132+
To assign users and groups to roles by using the Microsoft Entra admin center:
133+
134+
1. Sign in to the [Microsoft Entra admin center](https://entra.microsoft.com) as at least a [Cloud Application Administrator](../roles/permissions-reference.md#cloud-application-administrator).
135+
1. If you have access to multiple tenants, use the **Directories + subscriptions** filter :::image type="icon" source="./media/common/portal-directory-subscription-filter.png" border="false"::: in the top menu to switch to the tenant that contains the app registration to which you want to add an app role.
136+
1. Browse to **Identity** > **Applications** > **Enterprise applications**.
137+
1. Select **All applications** to view a list of all your applications. If your application doesn't appear in the list, use the filters at the top of the **All applications** list to restrict the list, or scroll down the list to locate your application.
138+
1. Select the application in which you want to assign users or security group to roles.
139+
1. Under **Manage**, select **Users and groups**.
140+
1. Select **Add user** to open the **Add Assignment** pane.
141+
1. Select the **Users and groups** selector from the **Add Assignment** pane. A list of users and security groups is displayed. You can search for a certain user or group and select multiple users and groups that appear in the list.
142+
1. Once you've selected users and groups, select the **Select** button to proceed.
143+
1. Select **Select a role** in the **Add assignment** pane. All the roles that you've defined for the application are displayed.
144+
1. Choose a role and select the **Select** button.
145+
1. Select the **Assign** button to finish the assignment of users and groups to the app.
146+
147+
Confirm that the users and groups you added appear in the **Users and groups** list.
148+
149149
## Next steps
150150

151151
Learn more about app roles with the following resources.

0 commit comments

Comments
 (0)