Skip to content

Commit c050da3

Browse files
authored
Merge pull request #103418 from markwahl-msft/mwahl-elm-api
add initial links for using Graph in entitlement management
2 parents 00f28d8 + 8847018 commit c050da3

5 files changed

+39
-2
lines changed

articles/active-directory/governance/entitlement-management-access-package-assignments.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ms.collection: M365-identity-device-management
2323
---
2424
# View, add, and remove assignments for an access package in Azure AD entitlement management
2525

26-
In Azure AD entitlement management, you can see who has been assigned to access packages, their policy, and status. If an access package has an appropriate policy, you can also directly assign user to an access package. This article describes how to view, add, and remove assignments for an access packages.
26+
In Azure AD entitlement management, you can see who has been assigned to access packages, their policy, and status. If an access package has an appropriate policy, you can also directly assign user to an access package. This article describes how to view, add, and remove assignments for access packages.
2727

2828
## View who has an assignment
2929

@@ -47,6 +47,10 @@ In Azure AD entitlement management, you can see who has been assigned to access
4747

4848
1. To download a CSV file of the filtered list, click **Download**.
4949

50+
### Viewing assignments programmatically
51+
52+
You can also retrieve assignments in an access package using Microsoft Graph. A user in an appropriate role with an application that has the delegated `EntitlementManagement.ReadWrite.All` permission can call the API to [list accessPackageAssignments](https://docs.microsoft.com/graph/api/accesspackageassignment-list?view=graph-rest-beta).
53+
5054
## Directly assign a user
5155

5256
In some cases, you might want to directly assign specific users to an access package so that users don't have to go through the process of requesting the access package. To directly assign users, the access package must have a policy that allows administrator direct assignments.
@@ -75,6 +79,10 @@ In some cases, you might want to directly assign specific users to an access pac
7579

7680
After a few moments, click **Refresh** to see the users in the Assignments list.
7781

82+
### Directly assigning users programmatically
83+
84+
You can also directly assign a user to an access package using Microsoft Graph. A user in an appropriate role with an application that has the delegated `EntitlementManagement.ReadWrite.All` permission can call the API to [create an accessPackageAssignmentRequest](https://docs.microsoft.com/graph/api/accesspackageassignmentrequest-post?view=graph-rest-beta).
85+
7886
## Remove an assignment
7987

8088
**Prerequisite role:** Global administrator, User administrator, Catalog owner, or Access package manager

articles/active-directory/governance/entitlement-management-access-package-create.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,18 @@ On the **Review + create** tab, you can review your settings and check for any v
129129

130130
The new access package appears in the list of access packages.
131131

132+
## Creating an access package programmatically
133+
134+
You can also create an access package using Microsoft Graph. A user in an appropriate role with an application that has the delegated `EntitlementManagement.ReadWrite.All` permission can call the API to
135+
136+
1. [List the accessPackageResources in the catalog](https://docs.microsoft.com/graph/api/accesspackagecatalog-list-accesspackageresources?view=graph-rest-beta) and [create an accessPackageResourceRequest](https://docs.microsoft.com/graph/api/accesspackageresourcerequest-post?view=graph-rest-beta) for any resources that are not yet in the catalog.
137+
1. [List the accessPackageResourceRoles](https://docs.microsoft.com/graph/api/accesspackagecatalog-list-accesspackageresourceroles?view=graph-rest-beta) of each accessPackageResource in an accessPackageCatalog. This list of roles will then be used to select a role, when subsequently creating an accessPackageResourceRoleScope.
138+
1. [Create an accessPackage](https://docs.microsoft.com/graph/api/accesspackage-post?view=graph-rest-beta).
139+
1. [Create an accessPackageAssignmentPolicy](https://docs.microsoft.com/graph/api/accesspackageassignmentpolicy-post?view=graph-rest-beta).
140+
1. [Create an accessPackageResourceRoleScope](https://docs.microsoft.com/graph/api/accesspackage-post-accesspackageresourcerolescopes?view=graph-rest-beta) for each resource role needed in the access package.
141+
132142
## Next steps
133143

134144
- [Share link to request an access package](entitlement-management-access-package-settings.md)
135145
- [Change resource roles for an access package](entitlement-management-access-package-resources.md)
146+
- [Directly assign a user to the access package](entitlement-management-access-package-assignments.md)

articles/active-directory/governance/entitlement-management-catalog-create.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ A catalog is a container of resources and access packages. You create a catalog
4949

5050
1. Click **Create** to create the catalog.
5151

52+
### Creating a catalog programmatically
53+
54+
You can also create a catalog using Microsoft Graph. A user in an appropriate role with an application that has the delegated `EntitlementManagement.ReadWrite.All` permission can call the API to [create an accessPackageCatalog](https://docs.microsoft.com/graph/api/accesspackagecatalog-post?view=graph-rest-beta).
55+
5256
## Add resources to a catalog
5357

5458
To include resources in an access package, the resources must exist in a catalog. The types of resources you can add are groups, applications, and SharePoint Online sites. The groups can be cloud-created Office 365 Groups or cloud-created Azure AD security groups. The applications can be Azure AD enterprise applications, including both SaaS applications and your own applications federated to Azure AD. The sites can be SharePoint Online sites or SharePoint Online site collections.
@@ -75,6 +79,10 @@ To include resources in an access package, the resources must exist in a catalog
7579

7680
These resources can now be included in access packages within the catalog.
7781

82+
### Adding a resource to a catalog programmatically
83+
84+
You can also add a resource to a catalog using Microsoft Graph. A user in an appropriate role, or a catalog and resource owner, with an application that has the delegated `EntitlementManagement.ReadWrite.All` permission can call the API to [create an accessPackageResourceRequest](https://docs.microsoft.com/graph/api/accesspackageresourcerequest-post?view=graph-rest-beta).
85+
7886
## Remove resources from a catalog
7987

8088
You can remove resources from a catalog. A resource can only be removed from a catalog if it is not being used in any of the catalog's access packages.
@@ -143,6 +151,10 @@ You can delete a catalog, but only if it does not have any access packages.
143151

144152
1. In the message box that appears, click **Yes**.
145153

154+
### Deleting a catalog programmatically
155+
156+
You can also delete a catalog using Microsoft Graph. A user in an appropriate role with an application that has the delegated `EntitlementManagement.ReadWrite.All` permission can call the API to [delete an accessPackageCatalog](https://docs.microsoft.com/graph/api/accesspackagecatalog-delete?view=graph-rest-beta).
157+
146158
## Next steps
147159

148160
- [Delegate access governance to access package managers](entitlement-management-delegate-managers.md)

articles/active-directory/governance/entitlement-management-delegate-catalog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ ms.collection: M365-identity-device-management
2424

2525
# Delegate access governance to catalog creators in Azure AD entitlement management
2626

27-
To delegate to users who aren't administrators, so that they can create their own catalogs, you can add those users to the Azure AD entitlement management-defined catalog creator role. You can add individual users, or you can add a group, whose members are then able to create catalogs.
27+
A catalog is a container of resources and access packages. You create a catalog when you want to group related resources and access packages. By default, a Global administrator or a User administrator can [create a catalog](entitlement-management-catalog-create.md), and can add additional users as catalog owners.
28+
29+
To delegate to users who aren't administrators, so that they can create their own catalogs, you can add those users to the Azure AD entitlement management-defined catalog creator role. You can add individual users, or you can add a group, whose members are then able to create catalogs. After creating a catalog, they can subsequently add resources they own to their catalog.
2830

2931
## As an IT administrator, delegate to a catalog creator
3032

articles/active-directory/governance/entitlement-management-scenarios.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ There are several ways that you can configure entitlement management for your or
149149
1. [View access packages for a user](entitlement-management-reports.md#view-access-packages-for-a-user)
150150
1. [View resource assignments for a user](entitlement-management-reports.md#view-resource-assignments-for-a-user)
151151

152+
## Programmatic administration
153+
154+
You can also manage access packages, catalogs, policies, requests and assignments using Microsoft Graph. A user in an appropriate role with an application that has the delegated `EntitlementManagement.ReadWrite.All` permission can call the [entitlement management API](https://docs.microsoft.com/graph/api/resources/entitlementmanagement-root?view=graph-rest-beta).
155+
152156
## Next steps
153157

154158
- [Delegation and roles](entitlement-management-delegate.md)

0 commit comments

Comments
 (0)