Skip to content

Commit c4c6f0f

Browse files
committed
fix warnings
1 parent b953b99 commit c4c6f0f

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

articles/active-directory/manage-apps/custom-security-attributes-apps.md

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Assign, update, list, or remove custom security attributes for an application (Preview) - Azure Active Directory
2+
title: Manage custom security attributes for an application (Preview) - Azure Active Directory
33
description: Assign, update, list, or remove custom security attributes for an application that has been registered with your Azure Active Directory (Azure AD) tenant.
44
services: active-directory
55
author: omondiatieno
@@ -14,7 +14,7 @@ zone_pivot_groups: enterprise-apps-all
1414

1515
---
1616

17-
# Assign, update, list, or remove custom security attributes for an application (Preview)
17+
# Manage custom security attributes for an application (Preview)
1818

1919
> [!IMPORTANT]
2020
> Custom security attributes are currently in PREVIEW.
@@ -34,7 +34,11 @@ To assign or remove custom security attributes for an application in your Azure
3434
> [!IMPORTANT]
3535
> 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.
3636
37-
## Assign custom security attributes to an application
37+
## Assign, update, list, or remove custom attributes for an application
38+
39+
Learn how to work with custom attributes for applications in Azure AD.
40+
### Assign custom security attributes to an application
41+
3842

3943
:::zone pivot="portal"
4044

@@ -64,7 +68,7 @@ Undertake the following steps to assign custom security attributes through the A
6468

6569
1. When finished, select **Save** to assign the custom security attributes to the application.
6670

67-
## Update custom security attribute assignment values for an application
71+
### Update custom security attribute assignment values for an application
6872

6973
1. Sign in to the [Azure portal](https://portal.azure.com) or [Azure AD admin center](https://aad.portal.azure.com).
7074

@@ -82,7 +86,7 @@ Undertake the following steps to assign custom security attributes through the A
8286

8387
1. When finished, select **Save**.
8488

85-
## Filter applications based on custom security attributes
89+
### Filter applications based on custom security attributes
8690

8791
You can filter the list of custom security attributes assigned to applications on the **All applications** page.
8892

@@ -106,7 +110,7 @@ You can filter the list of custom security attributes assigned to applications o
106110

107111
1. To apply the filter, select **Apply**.
108112

109-
## Remove custom security attribute assignments from applications
113+
### Remove custom security attribute assignments from applications
110114

111115
1. Sign in to the [Azure portal](https://portal.azure.com) or [Azure AD admin center](https://aad.portal.azure.com).
112116

@@ -123,11 +127,11 @@ You can filter the list of custom security attributes assigned to applications o
123127
:::zone-end
124128

125129
:::zone pivot="aad-powershell"
126-
## PowerShell
130+
### PowerShell
127131

128132
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.
129133

130-
## Assign a custom security attribute with a multi-string value to an application (service principal)
134+
### Assign a custom security attribute with a multi-string value to an application (service principal)
131135

132136
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).
133137

@@ -147,7 +151,7 @@ $attributes = @{
147151
Set-AzureADMSServicePrincipal -Id 7d194b0c-bf17-40ff-9f7f-4b671de8dc20 -CustomSecurityAttributes $attributes
148152
```
149153

150-
## Update a custom security attribute with a multi-string value for an application (service principal)
154+
### Update a custom security attribute with a multi-string value for an application (service principal)
151155

152156
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.
153157

@@ -167,7 +171,7 @@ $attributesUpdate = @{
167171
Set-AzureADMSServicePrincipal -Id 7d194b0c-bf17-40ff-9f7f-4b671de8dc20 -CustomSecurityAttributes $attributesUpdate
168172
```
169173

170-
## Get the custom security attribute assignments for an application (service principal)
174+
### Get the custom security attribute assignments for an application (service principal)
171175

172176
Use the [Get-AzureADMSServicePrincipal](/powershell/module/azuread/get-azureadmsserviceprincipal) command to get the custom security attribute assignments for an application (service principal).
173177

@@ -182,7 +186,7 @@ Get-AzureADMSServicePrincipal -Id 7d194b0c-bf17-40ff-9f7f-4b671de8dc20 -Select
182186

183187
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.
184188

185-
## Assign a custom security attribute with a multi-string value to an application (service principal)
189+
### Assign a custom security attribute with a multi-string value to an application (service principal)
186190

187191
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).
188192

@@ -210,7 +214,7 @@ ProjectDate ="Baker"
210214
Update-MgServicePrincipal -ServicePrincipalId $ServicePrincipal -BodyParameter $params
211215
```
212216

213-
## Update a custom security attribute with a multi-string value for an application (service principal)
217+
### Update a custom security attribute with a multi-string value for an application (service principal)
214218

215219
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.
216220

@@ -229,15 +233,15 @@ Project =@(
229233
Update-MgServicePrincipal -ServicePrincipalId $ServicePrincipal -BodyParameter $params
230234
```
231235

232-
## Filter applications based on custom security attributes
236+
### Filter applications based on custom security attributes
233237

234238
This example filters a list of applications with a custom security attribute assignment that equals the specified value.
235239

236240
```powershell
237241
Get-MgServicePrincipal -CountVariable CountVar -Property "id,displayName,customSecurityAttributes" -Filter "customSecurityAttributes/Engineering/Project eq 'Baker'" -ConsistencyLevel eventual
238242
```
239243

240-
## Remove custom security attribute assignments from applications
244+
### Remove custom security attribute assignments from applications
241245

242246
In this example, we remove a custom security attribute assignment that supports multiple values.
243247

@@ -257,13 +261,13 @@ Update-MgServicePrincipal -ServicePrincipalId $ServicePrincipal -BodyParameter $
257261

258262
:::zone-end
259263

260-
:::zone pivot="ms-graph
264+
:::zone pivot="ms-graph"
261265

262266
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.
263267

264268
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).
265269

266-
## Assign a custom security attribute with a multi-string value to an application (service principal)
270+
### Assign a custom security attribute with a multi-string value to an application (service principal)
267271

268272
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.
269273

@@ -291,7 +295,7 @@ Content-type: application/json
291295
}
292296
```
293297

294-
## Update a custom security attribute with a multi-string value for an application (service principal)
298+
### Update a custom security attribute with a multi-string value for an application (service principal)
295299

296300
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.
297301

@@ -312,15 +316,15 @@ Content-type: application/json
312316
}
313317
```
314318

315-
## Filter applications based on custom security attributes
319+
### Filter applications based on custom security attributes
316320

317321
This example filters a list of applications with a custom security attribute assignment that equals the specified value.
318322

319323
```http
320324
GET https://graph.microsoft.com/beta/servicePrincipals?$count=true&$select=id,displayName,customSecurityAttributes&$filter=customSecurityAttributes/Engineering/Project eq 'Baker'ConsistencyLevel: eventual
321325
```
322326

323-
## Remove custom security attribute assignments from an application
327+
### Remove custom security attribute assignments from an application
324328

325329
In this example, we remove a custom security attribute assignment that supports multiple values.
326330

0 commit comments

Comments
 (0)