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
Copy file name to clipboardExpand all lines: microsoftgraph/docs-conceptual/tutorial-entitlement-management.md
+37-27Lines changed: 37 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: "Manage access to resources in Azure AD entitlement management using Micr
3
3
description: "Learn how to manage access to resources in Azure Active Directory (Azure AD) entitlement management using Microsoft Graph PowerShell."
4
4
5
5
ms.topic: tutorial
6
-
ms.date: 04/06/2022
6
+
ms.date: 05/19/2023
7
7
ms.author: eunicewaweru
8
8
manager: CelesteDG
9
9
author: msewaweru
@@ -23,11 +23,7 @@ To successfully complete this tutorial, make sure you have the required prerequi
23
23
1. To use the Azure AD entitlement management, you must have one of the following licenses:
24
24
- Azure AD Premium P2
25
25
- Enterprise Mobility + Security (EMS) E5 license
26
-
1. Entitlement management is available in the beta version of Microsoft Graph PowerShell. Run the following command to set your profile to beta.
27
-
28
-
```powershell
29
-
Select-MgProfile -Name 'beta'
30
-
```
26
+
1. Entitlement management is available in the beta module of Microsoft Graph PowerShell. Ensure that you have both Microsoft.Graph and Microsoft.Graph.Beta modules installed.
31
27
32
28
1. Microsoft Graph PowerShell using a global administrator role and the appropriate permissions. The `User.ReadWrite.All`, `Group.ReadWrite.All`, and `EntitlementManagement.ReadWrite.All` delegated permissions are required. To set the permissions in Microsoft Graph PowerShell, run;
## Step 2: Add resources to a catalog and create an access package
80
76
81
-
An *access package** is a bundle of resources that a team or project needs and is governed by policies. Access packages are defined in containers called catalogs. Catalogs can reference resources such as groups, apps and sites that are used in the access package.
77
+
An **access package** is a bundle of resources that a team or project needs and is governed by policies. Access packages are defined in containers called catalogs. Catalogs can reference resources such as groups, apps and sites that are used in the access package.
82
78
83
79
In this step, create a **Marketing Campaign** access package in the `General` catalog.
84
80
85
81
### Get the catalog identifier
86
82
87
-
To add resources to a catalog, you must first get its identifier. If you're using the general catalog, run the following command to get its ID. If you're using a different catalog, change the filter value in the request to the name of your catalog. Record the returned **Id** property to use later.
83
+
To add resources to a catalog, you must first get its identifier. If you're using the general catalog, run the following command to get its Id. If you're using a different catalog, change the filter value in the request to the name of your catalog. Record the returned **Id** property to use later.
@@ -116,7 +112,7 @@ The output should only contain the catalog whose name you provided in the reques
116
112
117
113
To add the group that you created to the catalog, provide the following property values:
118
114
119
-
-**CatalogId** - Specifies the ID of the catalog that you're using.
115
+
-**CatalogId** - Specifies the Id of the catalog that you're using.
120
116
-**RequestType** - Set to `AdminAdd`.
121
117
-**AccessPackageResource** - Represents the resource. This resource should contain two properties: **OriginSystem** should be `AadGroup` and **OriginId** is the identifier of the group.
@@ -151,7 +147,7 @@ The request state indicates the outcome of whether the service was able to add t
151
147
In later steps, you'll need the **Id** that was assigned to the group resource in the catalog. This identifier represents the group as a resource in the catalog and is different from the group identifier itself in Microsoft Graph PowerShell. To get the resource, provide the **Id** of the catalog and filter by the display name of the group.
@@ -179,7 +175,7 @@ The access package assigns users to the roles of a resource. The typical role of
179
175
In this command, use the **Id** of the catalog and the **Id** of the group resource you recorded in the previous step to get the **OriginId** of the member resource role.
180
176
181
177
```powershell
182
-
Get-MgEntitlementManagementAccessPackageCatalogAccessPackageResourceRole -AccessPackageCatalogId '88d3e491-5247-4209-9b56-c4c95d9694e9' -Filter "originSystem eq 'AadGroup' and accessPackageResource/id eq '0a358d7b-42d9-48c5-8455-df23dcaff2ad' and DisplayName eq 'Member'"
178
+
Get-MgBetaEntitlementManagementAccessPackageCatalogAccessPackageResourceRole -AccessPackageCatalogId '88d3e491-5247-4209-9b56-c4c95d9694e9' -Filter "originSystem eq 'AadGroup' and accessPackageResource/id eq '0a358d7b-42d9-48c5-8455-df23dcaff2ad' and DisplayName eq 'Member'"
183
179
```
184
180
185
181
```Output
@@ -195,7 +191,7 @@ If successful, a single record is returned which represents the member role of t
195
191
At this point, you have a catalog with a group resource, and you know that you'll use the resource role of group member in the access package. The next step is to create the access package. After creating the access package, you can add the resource role to it and create a policy for how users can request access to that resource role. You use the **Id** of the catalog that you recorded earlier to create the access package. Record the **Id** of the access package to use later. In this step, you create a **Marketing Campaign** access package in the General catalog.
@@ -326,7 +322,13 @@ To request access, you need to provide these values:
326
322
-**RequestType** - Specifies the type of request. For a non-administrator user to request to create their own assignment for either a first assignment or renew assignment, the value of the requestType property is `UserAdd`.
@@ -339,10 +341,8 @@ Use the administrator account to see the status of the request.
339
341
340
342
Use the **Id** property of the request to get the current status of it. The request state should be `Delivered` and request status `Fulfilled`.
341
343
342
-
Run `Get-MgEntitlementManagementAccessPackageAssignmentRequest` first to get the AccessPackageAssignmentRequestId for your request based on the `CreatedDateTime`.
@@ -413,23 +413,29 @@ In this step, remove the changes you made and delete the **Marketing Campaign**
413
413
You must delete any assignments to the access package before you can delete it. Use the **Id** of the assignment request that you recorded to delete the access package itself.
0 commit comments