Skip to content

Commit 0df8425

Browse files
Update export-import-provisioning-configuration.md
1 parent 24fdf05 commit 0df8425

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

articles/active-directory/app-provisioning/export-import-provisioning-configuration.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ms.collection: M365-identity-device-management
2121
# Export your provisioning configuration and roll back to a known good state
2222

2323
## Export and import your provisioning configuration from the Azure portal
24+
2425
### How can I export my provisioning configuration?
2526
To export your configuration:
2627
1. In the [Azure portal](https://portal.azure.com/), on the left navigation panel, select **Azure Active Directory**.
@@ -29,15 +30,22 @@ To export your configuration:
2930
5. Click on download in the command bar at the top of the page to download your schema.
3031

3132
### Disaster recovery - roll back to a known good state
32-
Exporting and saving your configuration allows you to roll back to a previous version of your configuration. We recommend exporting your provisioning configuration and saving it for later use anytime you make a change to your attribute mappings or scoping filters. All you need to do is open up the JSON file that you downloaded in the steps above, copy the entire contents of the JSON file, replace the entire contents of the JSON payload in the schema editor, and then save. If there is an active provisioning cycle, it will complete and the next cycle will use the updated schema. The next cycle will also be an initial cycle, which reevaluates every user and group based on the new configuration.
33-
## Step 1: Retrieve your Provisioning App Service Principal ID (Object ID)
33+
Exporting and saving your configuration allows you to roll back to a previous version of your configuration. We recommend exporting your provisioning configuration and saving it for later use anytime you make a change to your attribute mappings or scoping filters. All you need to do is open up the JSON file that you downloaded in the steps above, copy the entire contents of the JSON file, replace the entire contents of the JSON payload in the schema editor, and then save. If there is an active provisioning cycle, it will complete and the next cycle will use the updated schema. The next cycle will also be an initial cycle, which reevaluates every user and group based on the new configuration. Consider the following when rolling back to a previous configuration:
34+
* Users will be evaluated again to determine if they should be in scope. If the scoping filters have changed a user is not in scope any more they will be disabled. While this is the desired behavior in most cases, there are times where you may want to prevent this and can use the [skip out of scope deletions](https://docs.microsoft.com/azure/active-directory/app-provisioning/skip-out-of-scope-deletions) functionality.
35+
* Changing your provisioning configuration restarts the service and triggers an [initial cycle](https://docs.microsoft.com/azure/active-directory/app-provisioning/how-provisioning-works#provisioning-cycles-initial-and-incremental).
36+
37+
38+
## Export and import your provisioning configuration by using the Microsoft Graph API
39+
You can use the Microsoft Graph API and the Microsoft Graph Explorer to export your User Provisioning attribute mappings and schema to a JSON file and import it back into Azure AD. You can also use the steps captured here to create a backup of your provisioning configuration.
40+
41+
### Step 1: Retrieve your Provisioning App Service Principal ID (Object ID)
3442

35-
1. Launch the [Azure portal](https://portal.azure.com), and navigate to the Properties section of your provisioning application. For e.g. if you want to export your *Workday to AD User Provisioning application* mapping navigate to the Properties section of that app.
43+
1. Launch the [Azure portal](https://portal.azure.com), and navigate to the Properties section of your provisioning application. For example, if you want to export your *Workday to AD User Provisioning application* mapping navigate to the Properties section of that app.
3644
1. In the Properties section of your provisioning app, copy the GUID value associated with the *Object ID* field. This value is also called the **ServicePrincipalId** of your App and it will be used in Microsoft Graph Explorer operations.
3745

3846
![Workday App Service Principal ID](./media/export-import-provisioning-configuration/wd_export_01.png)
3947

40-
## Step 2: Sign into Microsoft Graph Explorer
48+
### Step 2: Sign into Microsoft Graph Explorer
4149

4250
1. Launch [Microsoft Graph Explorer](https://developer.microsoft.com/graph/graph-explorer)
4351
1. Click on the "Sign-In with Microsoft" button and sign-in using Azure AD Global Admin or App Admin credentials.
@@ -46,7 +54,7 @@ Exporting and saving your configuration allows you to roll back to a previous ve
4654

4755
1. Upon successful sign-in, you will see the user account details in the left-hand pane.
4856

49-
## Step 3: Retrieve the Provisioning Job ID of the Provisioning App
57+
### Step 3: Retrieve the Provisioning Job ID of the Provisioning App
5058

5159
In the Microsoft Graph Explorer, run the following GET query replacing [servicePrincipalId] with the **ServicePrincipalId** extracted from the [Step 1](#step-1-retrieve-your-provisioning-app-service-principal-id-object-id).
5260

@@ -58,7 +66,7 @@ You will get a response as shown below. Copy the "id attribute" present in the r
5866

5967
[![Provisioning Job ID](./media/export-import-provisioning-configuration/wd_export_03.png)](./media/export-import-provisioning-configuration/wd_export_03.png#lightbox)
6068

61-
## Step 4: Download the Provisioning Schema
69+
### Step 4: Download the Provisioning Schema
6270

6371
In the Microsoft Graph Explorer, run the following GET query, replacing [servicePrincipalId] and [ProvisioningJobId] with the ServicePrincipalId and the ProvisioningJobId retrieved in the previous steps.
6472

@@ -68,7 +76,7 @@ In the Microsoft Graph Explorer, run the following GET query, replacing [service
6876

6977
Copy the JSON object from the response and save it to a file to create a backup of the schema.
7078

71-
## Step 5: Import the Provisioning Schema
79+
### Step 5: Import the Provisioning Schema
7280

7381
> [!CAUTION]
7482
> Perform this step only if you need to modify the schema for configuration that cannot be changed using the Azure portal or if you need to restore the configuration from a previously backed up file with valid and working schema.

0 commit comments

Comments
 (0)