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
Requires a minimum of two arguments, which are unique value generation rules defined using expressions. The function evaluates each rule and then checks the value generated for uniqueness in the target app/directory. The first unique value found will be the one returned. If all of the values already exist in the target, the entry will get escrowed and the reason gets logged in the audit logs. There is no upper bound to the number of arguments that can be provided.
521
521
522
-
> [!NOTE]
523
-
>- This is a top-level function, it cannot be nested.
524
-
>- This function cannot be applied to attributes that have a matching precedence.
525
-
>- This function is only meant to be used for entry creations. When using it with an attribute, set the **Apply Mapping** property to **Only during object creation**.
526
-
>- This function is currently only supported for "Workday to Active Directory User Provisioning". It cannot be used with other provisioning applications.
522
+
523
+
- This is a top-level function, it cannot be nested.
524
+
- This function cannot be applied to attributes that have a matching precedence.
525
+
- This function is only meant to be used for entry creations. When using it with an attribute, set the **Apply Mapping** property to **Only during object creation**.
526
+
- This function is currently only supported for "Workday to Active Directory User Provisioning". It cannot be used with other provisioning applications.
title: Using SCIM, the Microsoft Graph, and the Azure AD provisioning service to provision users and enrich your application with the data it needs | Microsoft Docs
3
+
description: Using SCIM and the Microsoft Graph together to provision users and enrich your application with the data it needs .
4
+
services: active-directory
5
+
documentationcenter: ''
6
+
author: msmimart
7
+
manager: CelesteDG
8
+
9
+
ms.assetid:
10
+
ms.service: active-directory
11
+
ms.subservice: app-provisioning
12
+
ms.workload: identity
13
+
ms.tgt_pltfrm: na
14
+
ms.devlang: na
15
+
ms.topic: conceptual
16
+
ms.date: 04/06/2020
17
+
ms.author: mimart
18
+
ms.reviewer: arvinh
19
+
20
+
ms.collection: M365-identity-device-management
21
+
---
22
+
23
+
24
+
# Using SCIM and Microsoft Graph together to provision users and enrich your application with the data it needs
25
+
26
+
**Target audience:** This document is targeted towards developers building applications integrated with Azure AD. For others looking to integrate an existing application such as Zoom, ServiceNow, and DropBox you can skip this and review the application specific [tutorials](https://docs.microsoft.com/azure/active-directory/saas-apps/tutorial-list).
27
+
28
+
**Common scenarios**
29
+
30
+
> [!div class="checklist"]
31
+
> * Automatically create users in my application
32
+
> * Automatically remove users from my application when they shouldn't have access anymore
33
+
> * Integrate my application with multiple identity providers for provisioning
34
+
> * Enrich my application with data from Microsoft services such as Sharepoint, Outlook, and Office.
35
+
> * Automatically create, update, and delete users and groups in Azure AD and Active Directory
## Scenario 1: Automatically create users in my app
40
+
Today, IT admins manually create user accounts in my application each time someone needs access or periodically upload CSV files. The process is time consuming for customers and slows down adoption of my application. All I need is basic [user](https://docs.microsoft.com/graph/api/resources/user?view=graph-rest-1.0) information such as name, email, and userPrincipalName to create a user. Furthermore, my customers use various IdPs and I don't have the resources to maintain a sync engine and custom integrations with each IdP.
41
+
42
+
**Recommendation**: Support a SCIM compliant [/Users](https://aka.ms/scimreferencecode) endpoint. Your customers will be able to easily use this endpoint to integrate with the Azure AD provisioning service and automatically create user accounts when they need access. You can build the endpoint once and it will be compatible with all IdPs, without having to maintain a sync engine. Check out the example request below for how a user would be created.
## Scenario 2: Automatically remove users from my app
66
+
The customers using my application are security focused and have governance requirements to remove accounts when employees don't need them anymore. How can I automate deprovisioning from my application?
67
+
68
+
**Recommendation:** Support a SCIM compliant /Users endpoint. The Azure AD provisioning service will send requests to disable and delete when the user shouldn't have access anymore. We recommend supporting both disabling and deleting users. See the examples below for what a disable and delete request look like.
69
+
70
+
Disable user
71
+
```json
72
+
PATCH /Users/5171a35d82074e068ce2 HTTP/1.1
73
+
{
74
+
"Operations": [
75
+
{
76
+
"op": "Replace",
77
+
"path": "active",
78
+
"value": false
79
+
}
80
+
],
81
+
"schemas": [
82
+
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
83
+
]
84
+
}
85
+
```
86
+
Delete user
87
+
```json
88
+
DELETE /Users/5171a35d82074e068ce2 HTTP/1.1
89
+
```
90
+
91
+
## Scenario 3: Automate managing group memberships in my app
92
+
My application relies on groups for access to various resources, and customers want to reuse the groups that they have in Azure AD. How can I import groups from Azure AD and keep them updated as the memberships change?
93
+
94
+
**Recommendation:** Support a SCIM compliant /Groups [endpoint](https://aka.ms/scimreferencecode). The Azure AD provisioning service will take care of creating groups and managing membership updates in your application.
95
+
96
+
## Scenario 4: Enrich my app with data from Microsoft services such as Teams, Outlook, and OneDrive.
97
+
My application is built into Microsoft Teams and relies on message data. In addition, we store files for users in OneDrive. How can I enrich my application with the data from these services and across Microsoft?
98
+
99
+
**Recommendation:** The [Microsoft Graph](https://docs.microsoft.com/graph/) is your entry point to access Microsoft data. Each workload exposes APIs with the data that you need. The Microsoft graph can be used along with [SCIM provisioning](https://docs.microsoft.com/azure/active-directory/app-provisioning/use-scim-to-provision-users-and-groups) for the scenarios above. You can use SCIM to provision basic user attributes into your application while calling into graph to get any other data that you need.
100
+
101
+
## Scenario 5: Track changes in Microsoft services such as Teams, Outlook, and Azure AD.
102
+
I need to be able to track changes to Teams and Outlook messages and react to them in real time. How can I get these changes pushed to my application?
103
+
104
+
**Recommendation:** The Microsoft Graph provides [change notifications](https://docs.microsoft.com/graph/webhooks) and change tracking for various resources. Note the following limitations of change notifications:
105
+
- If an event receiver acknowledges an event, but fails to act on it for any reason, the event may be lost
106
+
- If an event receiver acknowledges an event, but fails to act on it for any reason, the event may be lost
107
+
- Change notifications don't always contain the [resource data](https://docs.microsoft.com/graph/webhooks-with-resource-data)
108
+
For the reasons above, developers often use change notifications along with change tracking for synchronization scenarios.
109
+
110
+
## Scenario 6: Provision users and groups in Azure AD.
111
+
My application creates information about a user that customers need in Azure AD. This could be an HR application than manages hiring, a communications app that creates phone numbers for users, or some other app that generates data that would be valuable in Azure AD. How do I populate the user record in Azure AD with that data?
112
+
113
+
**Recommendation** The Microsoft graph exposes /Users and /Groups endpoints that you can integrate with today to provision users into Azure AD. Please note that Azure Active Directory doesn't support writing those users back into Active Directory.
114
+
115
+
> [!NOTE]
116
+
> Microsoft has a provisioning service that pulls in data from HR applications such as Workday and SuccessFactors. These integrations are built and managed by Microsoft. For onboarding a new HR application to our service, you can request it on [UserVoice](https://feedback.azure.com/forums/374982-azure-active-directory-application-requests).
117
+
118
+
## Related articles
119
+
120
+
-[Review the synchronization Microsoft Graph documentation](https://docs.microsoft.com/graph/api/resources/synchronization-overview?view=graph-rest-beta)
121
+
-[Integrating a custom SCIM app with Azure AD](use-scim-to-provision-users-and-groups.md)
0 commit comments