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
-[AzureADPreview](https://www.powershellgallery.com/packages/AzureADPreview) version 2.0.2.138 or later when using PowerShell
31
+
- Make sure you have existing custom security attributes. To learn how to create a security attribute, see [Add or deactivate custom security attributes in Azure AD](../fundamentals/custom-security-attributes-add.md).
32
+
30
33
31
34
> [!IMPORTANT]
32
-
> By default, [Global Administrator](../roles/permissions-reference.md#global-administrator) and other administrator roles do not have permissions to read, define, or assign custom security attributes.
35
+
> By default, [Global Administrator](../roles/permissions-reference.md#global-administrator) and other administrator roles don't have permissions to read, define, or assign custom security attributes.
33
36
34
37
## Assign custom security attributes to an application
35
38
36
-
1. Sign in to the [Azure portal](https://portal.azure.com) or [Azure AD admin center](https://aad.portal.azure.com).
39
+
:::zone pivot="portal"
37
40
38
-
1. Make sure that you have existing custom security attributes. For more information, see [Add or deactivate custom security attributes in Azure AD](../fundamentals/custom-security-attributes-add.md).
41
+
Undertake the following steps to assign custom security attributes through the Azure portal.
42
+
43
+
1. Sign in to the [Azure portal](https://portal.azure.com) or [Azure AD admin center](https://aad.portal.azure.com).
39
44
40
-
1. Select **Azure Active Directory** >**Enterprise applications**.
45
+
1. Select **Azure Active Directory**, then select**Enterprise applications**.
41
46
42
47
1. Find and select the application you want to add a custom security attribute to.
43
48
@@ -55,39 +60,39 @@ To assign or remove custom security attributes for an application in your Azure
55
60
- For predefined custom security attribute values, select a value from the **Assigned values** list.
56
61
- For multi-valued custom security attributes, select **Add values** to open the **Attribute values** pane and add your values. When finished adding values, select **Done**.
57
62
58
-

63
+

59
64
60
65
1. When finished, select **Save** to assign the custom security attributes to the application.
61
66
62
67
## Update custom security attribute assignment values for an application
63
68
64
69
1. Sign in to the [Azure portal](https://portal.azure.com) or [Azure AD admin center](https://aad.portal.azure.com).
65
70
66
-
1. Select **Azure Active Directory** >**Enterprise applications**.
71
+
1. Select **Azure Active Directory**, then select**Enterprise applications**.
67
72
68
73
1. Find and select the application that has a custom security attribute assignment value you want to update.
69
74
70
75
1. In the Manage section, select **Custom security attributes (preview)**.
71
76
72
77
1. Find the custom security attribute assignment value you want to update.
73
78
74
-
Once you have assigned a custom security attribute to an application, you can only change the value of the custom security attribute. You can't change other properties of the custom security attribute, such as attribute set or custom security attribute name.
79
+
Once you've assigned a custom security attribute to an application, you can only change the value of the custom security attribute. You can't change other properties of the custom security attribute, such as attribute set or custom security attribute name.
75
80
76
81
1. Depending on the properties of the selected custom security attribute, you can update a single value, select a value from a predefined list, or update multiple values.
77
82
78
83
1. When finished, select **Save**.
79
84
80
85
## Filter applications based on custom security attributes
81
86
82
-
You can filter the list of custom security attributes assigned to applications on the All applications page.
87
+
You can filter the list of custom security attributes assigned to applications on the **All applications** page.
83
88
84
89
1. Sign in to the [Azure portal](https://portal.azure.com) or [Azure AD admin center](https://aad.portal.azure.com).
85
90
86
-
1. Select **Azure Active Directory** >**Enterprise applications**.
91
+
1. Select **Azure Active Directory**, then select**Enterprise applications**.
87
92
88
93
1. Select **Add filters** to open the Pick a field pane.
89
94
90
-
If you don't see Add filters, click the banner to enable the Enterprise applications search preview.
95
+
If you don't see **Add filters**, select the banner to enable the Enterprise applications search preview.
91
96
92
97
1. For **Filters**, select **Custom security attribute**.
93
98
@@ -105,21 +110,24 @@ You can filter the list of custom security attributes assigned to applications o
105
110
106
111
1. Sign in to the [Azure portal](https://portal.azure.com) or [Azure AD admin center](https://aad.portal.azure.com).
107
112
108
-
1. Select **Azure Active Directory** >**Enterprise applications**.
113
+
1. Select **Azure Active Directory**, then select**Enterprise applications**.
109
114
110
115
1. Find and select the application that has the custom security attribute assignments you want to remove.
111
116
112
-
1. In the Manage section, select **Custom security attributes (preview)**.
117
+
1. In the **Manage** section, select **Custom security attributes (preview)**.
113
118
114
119
1. Add check marks next to all the custom security attribute assignments you want to remove.
115
120
116
121
1. Select **Remove assignment**.
117
122
123
+
:::zone-end
124
+
125
+
:::zone pivot="aad-powershell"
118
126
## PowerShell
119
127
120
128
To manage custom security attribute assignments for applications in your Azure AD organization, you can use PowerShell. The following commands can be used to manage assignments.
121
129
122
-
####Assign a custom security attribute with a multi-string value to an application (service principal)
130
+
## Assign a custom security attribute with a multi-string value to an application (service principal)
123
131
124
132
Use the [Set-AzureADMSServicePrincipal](/powershell/module/azuread/set-azureadmsserviceprincipal) command to assign a custom security attribute with a multi-string value to an application (service principal).
####Update a custom security attribute with a multi-string value for an application (service principal)
150
+
## Update a custom security attribute with a multi-string value for an application (service principal)
143
151
144
-
Use the [Set-AzureADMSServicePrincipal](/powershell/module/azuread/set-azureadmsserviceprincipal) command to update a custom security attribute with a multi-string value for an application (service principal).
152
+
Provide the new set of attribute values that you would like to reflect on the application. In this example, we're adding one more value for project attribute.
####Get the custom security attribute assignments for an application (service principal)
170
+
## Get the custom security attribute assignments for an application (service principal)
163
171
164
172
Use the [Get-AzureADMSServicePrincipal](/powershell/module/azuread/get-azureadmsserviceprincipal) command to get the custom security attribute assignments for an application (service principal).
To manage custom security attribute assignments for applications in your Azure AD organization, you can use Microsoft Graph PowerShell. The following commands can be used to manage assignments.
184
+
185
+
## Assign a custom security attribute with a multi-string value to an application (service principal)
186
+
187
+
Use the [Set-AzureADMSServicePrincipal](/powershell/module/azuread/set-azureadmsserviceprincipal) command to assign a custom security attribute with a multi-string value to an application (service principal).
## Update a custom security attribute with a multi-string value for an application (service principal)
214
+
215
+
Provide the new set of attribute values that you would like to reflect on the application. In this example, we're adding one more value for project attribute.
To manage custom security attribute assignments for applications in your Azure AD organization, you can use the Microsoft Graph API. The following API calls can be made to manage assignments.
262
+
To manage custom security attribute assignments for applications in your Azure AD organization, you can use the Microsoft Graph API. Make the following API calls to manage assignments.
174
263
175
264
For other similar Microsoft Graph API examples for users, see [Assign, update, list, or remove custom security attributes for a user](../enterprise-users/users-custom-security-attributes.md#microsoft-graph-api) and [Examples: Assign, update, list, or remove custom security attribute assignments using the Microsoft Graph API](/graph/custom-security-attributes-examples).
176
265
177
-
####Assign a custom security attribute with a string value to an application (service principal)
266
+
## Assign a custom security attribute with a multi-string value to an application (service principal)
178
267
179
-
Use the [Update servicePrincipal](/graph/api/serviceprincipal-update?view=graph-rest-beta&preserve-view=true) API to assign a custom security attribute with a string value to a user.
268
+
Use the [Update servicePrincipal](/graph/api/serviceprincipal-update?view=graph-rest-beta&preserve-view=true) API to assign a custom security attribute with a string value to an application.
## Update a custom security attribute with a multi-string value for an application (service principal)
295
+
296
+
Provide the new set of attribute values that you would like to reflect on the application. In this example, we're adding one more value for project attribute.
#### Get the custom security attribute assignments for an application (service principal)
315
+
##Filter applications based on custom security attributes
201
316
202
-
Use the [Get servicePrincipal](/graph/api/serviceprincipal-get?view=graph-rest-beta&preserve-view=true) API to get the custom security attribute assignments for an application (service principal).
317
+
This example filters a list of applications with a custom security attribute assignment that equals the specified value.
203
318
204
319
```http
205
-
GET https://graph.microsoft.com/beta/servicePrincipals/{id}?$select=customSecurityAttributes
320
+
GET https://graph.microsoft.com/beta/servicePrincipals?$count=true&$select=id,displayName,customSecurityAttributes&$filter=customSecurityAttributes/Engineering/Project eq 'Baker'ConsistencyLevel: eventual
206
321
```
207
322
208
-
If there are no custom security attributes assigned to the application or if the calling principal does not have access, the response will look like:
323
+
## Remove custom security attribute assignments from an application
324
+
325
+
In this example, we remove a custom security attribute assignment that supports multiple values.
0 commit comments