UserSync Current: Azure AD configuration Azure AD configuration This page contains information about how to setup Azure AD and User Sync. We currently recommend to setup User Sync on the Azure side with new App registrations interface. When you encounter different wording, please contact us and we will update the documentation. Recommended Setup: Via the new App registrations interface Quickstart guide Go to portal.azure.com, click "Azure Active Directory" in the left panel and then choose "App registrations".Click on "New registration"Enter a "Name" for the app.Set the Redirect URI to "Web" and enter "https://<your-instance>/plugins/servlet/de.resolution.usersync/oauth2/authorize" in the textfield.Click on "Register".On this page you can see the "Application ID" and the "Directory (tenant) ID". You will need both to setup the Azure AD connector in User Sync.Click on "API permissions" in the left panel.Click on "Add a permission" and choose "Microsoft Graph".Click on "Delegated permission". Search for the "User" entry and expand it. Tick "User.Read" and "User.ReadBasic.All".Click on "Add permissions" to finally add the permissions.Click again on "Add a permission", choose "Microsoft Graph" and click on "Application Permissions".Search for the "Directory" entry, expand it and tick "Directory.Read.All".Then, search for "User", expand it and tick "User.Read.All".Click on "Add permissions" to add the permissions.Next, click on "Certificate & secrets".Add a new Client secret by click on "New client secret".Enter a description, and choose "Never" for "Expires". Click on "Add".Copy the secret now ("VALUE"). You are not able to see it again after leaving that page. Please paste it to a text editor for the tutorial.Now it is time to configure UserSync in your Atlassian product. Please keep the Azure website open, because we will need it later on.Now, go back to your Atlassian product, and go to the UserSync Configuration.Click Add Connector and choose Azure Connector.First, paste the client secret (which you copied before) into the Application Secret.Next, go back to the Azure website and click Properties in the app you have created for UserSync. Copy the Application ID and Directory (Tenant) ID and paste them into the UserSync configuration in your Atlassian product.In the UserSync configuration, activate Enable Scheduled Synchronization. You can provide a Cron expression to set a synchronisation interval. User guide Configure Azure AD for UserSyncGo to http://portal.azure.com and search in the left panel forIn the Azure Active directory, click on "App registrations".Click on "New registration" to create a new AppEnter a name for your application and for the Redirect URI use "https://<your-instance>/plugins/servlet/de.resolution.usersync/oauth2/authorize". Click on register to proceed.Click on "API permissions" in the left panel and then on "Add a permission".Select "Microsoft Graph".Choose "Delegated permissions".Scroll down to User, make sure that "User.Read" is ticked and tick also "User.ReadBasic.All". Click on "Add permissions" to confirm this.In the "API permissions" window, click again on "Add a permission".Now, choose "Application permissions"Expand "Directory" and tick "Directory.Read.All"Scroll down to "User" and also tick "User.Read.All". Afterwards click "Add permissions" to continue.For the next step, click on "Certificates & secrets" in the left panel, and then click on "New client secret".Enter a description for the secret and also set an expiry date. Click on "Add" to confirm.Your Client secret will displayed only once, thus copy the secret. Of course it is possible to create a new secret, if you lost your secret.Setting up UserSync in your Atlassian productIn the next steps, you will set up User Sync in your Atlassian application. Click on "Add Connector" and choose "Azure Connector".Insert the "Application Secret" which were created two steps ago.For the next step, you need the "Application ID" and the "Directory (tenant ID)". You can find those on the overview page of the Azure AD app. Please insert them into the User Sync configuration in your Atlassian product.If you provided all information, click on "Authorize": To take the full advantages of User Sync, scroll down and tick "Enable Scheduled Synchronization". You can control the sync interval via a Cron Expression.Do not forget to save your configuration. Scroll down to the bottom of the page and hit "Save". You are now ready to toggle a full sync. Simply click the "Sync" button.Alternative setupsWhile we recommend using the new Application registration user-interface, it is also possible to use the App registration (Legacy).Via the App Registrations (Legacy)Using the old App registrations interface is also possible. You can access it via the Enterprise applications as described before, or by going to portal.azure.com and choosing "Azure Active Directory". On the right panel you can now find a link to "App registration (Legacy)".Click on "New application registrations"Enter a name, choose "Web app /API" as the Application type. For the sign-on URL use "https://<your-instance>/plugins/servlet/de.resolution.usersync/oauth2/authorize"Click on "Create" and afterwards on "Settings".Navigate to "Required Permissions" and click on "Add"Click on "Select an API" and "Microsoft Graph". Confirm this by clicking on "Select".On the next window, you have to select the following permissions. Please note, there are "Application Permissions" and "Delegated Permission". Select the following permissions:Delegated Permissions: "Sign in and read user profile", "Read all users' basic profiles"Application Permissions: "Read directory data" , "Read all users' full profiles"Click on "Done" to save the permissions.Next, click on "Keys" in the left panel.In "Passwords", enter a "Key description", choose "Never expires" for the duration and press the Save button. Now, the password is visible. Copy it, since you can not retrieve it anymore after leaving the page.Setup up the User Sync connector as described above.