List executionScope
Namespace: microsoft.graph.identityGovernance
Important
APIs under the /beta
version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
List the users that meet the execution conditions regardless of whether they have already been processed by the workflow.
The workflow engine periodically evaluates the users that meet the execution conditions. The results will not be up to date if the execution conditions have been changed recently, relevant attributes on the user have been changed recently or the time based trigger has been reached recently.
The API is only supported for workflows with trigger and scope based execution conditions. Furthermore, results are only returned if the workflows schedule (isSchedulingEnabled) is enabled.
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | LifecycleWorkflows.Read.All, LifecycleWorkflows.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | LifecycleWorkflows.Read.All, LifecycleWorkflows.ReadWrite.All |
For delegated scenarios, the admin needs the Global Reader or Lifecycle Workflows Administrator Azure AD role.
HTTP request
GET /identitygovernance/lifecycleWorkflows/workflows/{workflowId}/executionScope
Optional query parameters
This method supports the $select
, $expand
, $orderBy
, and $filter
OData query parameters to help customize the response. For general information, see OData query parameters.
Request headers
Name | Description |
---|---|
Authorization | Bearer {token}. Required. |
Request body
Do not supply a request body for this method.
Response
If successful, this method returns a 200 OK
response code and a collection of microsoft.graph.user objects in the response body.
Examples
Example 1: Retrieve the users that fall in scope of a workflow
Request
The following is an example of a request.
GET https://graph.microsoft.com/beta/identitygovernance/lifecycleWorkflows/workflows/8696088c-1aef-4f65-afe9-acd55343e327/executionScope
Response
The following is an example of the response
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#users",
"value": [
{
"displayName": "Christian Andersen",
"givenName": "Christian",
"mail": null,
"surname": "Andersen",
"userPrincipalName": "CAndersen@w325q.onmicrosoft.com"
}
],
}
Example 2: Retrieve the id of users in the execution scope of a workflow
Request
The following is an example of a request.
GET https://graph.microsoft.com/beta/identitygovernance/lifecycleWorkflows/workflows/8696088c-1aef-4f65-afe9-acd55343e327/executionScope?$select=id
Response
The following is an example of the response
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#users(id)",
"value": [
{
"id": "6bb70a30-124a-4666-b9b8-6ae178d4f791"
}
],
}
Feedback
Submit and view feedback for