This guide explains how to set up automatic user and group provisioning between Microsoft Entra ID and your Hugging Face organization using SCIM.


Under the Mappings section, click on Provision Microsoft Entra ID Users.
The default attribute mappings often require adjustments for robust provisioning. We recommend using the following configuration. You can delete attributes that are not listed here:
customappsso Attribute | Microsoft Entra ID Attribute | Matching precedence |
|---|---|---|
userName | Replace([mailNickname], ".", "", "", "", "", "") | |
active | Switch([IsSoftDeleted], , "False", "True", "True", "False") | |
emails[type eq "work"].value | userPrincipalName | |
name.givenName | givenName | |
name.familyName | surname | |
name.formatted | Join(" ", [givenName], [surname]) | |
externalId | objectId | 1 |
After configuring the user mappings, go back to the Provisioning screen and click on Provision Microsoft Entra ID Groups to review group mappings. The default settings for groups are usually sufficient.
The initial synchronization can take up to 40 minutes to start. You can monitor the progress in the Provisioning logs tab.
To control which users and groups are provisioned to your Hugging Face organization, you need to assign them to the Hugging Face Enterprise Application in Microsoft Entra ID. This is done in the Users and groups tab of your application.

Only the users and groups you assign here will be provisioned to Hugging Face if you have set the Scope to “Sync only assigned users and groups”.
Active Directory Plan Considerations
Once the synchronization is complete, navigate back to your Hugging Face organization settings:
Once your groups are provisioned from Entra ID, you can link them to Hugging Face Resource Groups to manage permissions at scale. This allows all members of a SCIM group to automatically receive specific roles (like read or write) for a collection of resources.
