User provisioning with Azure Active Directory (Azure AD)

Overview

Use Azure Active Directory (Azure AD) SCIM provisioning with Front to fine-tune control of your users in Front.

You can: 

  • Automatically create users in Front.
  • Automatically block users when the Azure AD profile is suspended.

To set up user provisioning with Azure AD, you must be a Company Admin.


Prerequisites

Create a Front API token

You’ll need to create a Front API token to complete the setup process in your Azure portal.

Step 1

In Front, follow the steps on this article to create an API token.

Step 2

On Step 5 of creating a token, select the Provisioning and Auto-Provisioning Scopes.

Step 3

Click Create.

Step 4

Click Copy next to the API token field to add the token to your clipboard.

Step 5

Your token can now be pasted into your Azure portal.


Instructions

Part 1: Connect Front to Azure AD

Step 1

Follow these steps as defined by Microsoft to create a “non-gallery application” that will be able to provision from Azure AD.

Step 2

In Step 7 of Microsoft’s instructions, enter the URL for Front’s SCIM endpoint in the Tenant URL field: https://scim.frontapp.com/v2/

Step 3

In Step 8 of Microsoft’s instructions, paste your Front API token in the Secret Token field. 

Step 4

Click the Test Connection button to confirm Azure AD connects with Front. Click Save when finished.

Part 2: Edit attribute mappings

Step 5

In your Azure portal, select Provisioning in the left panel, then click Edit attribute mappings.

Step 6

In the Mappings section, click Provision Azure Active Directory Users.

Step 7

You will see a list of Azure Active Directory Attributes and their corresponding Front SCIM API fields (customappsso Attributes). We recommend configuring your field mapping like the screenshot below. Delete any Attributes omitted from this list.

There are 4 main adjustments you will need to make that deviate from the defaults.

Adjustment 1: Add the ToLower function onto the active field mapping.

Adjustment 2: Change the mail Azure Active Directory Attribute to userPrincipalName.

Before

After

Adjustment 3: Click into the mailNickname mapping, and ensure the field is only applied on object creation.

Adjustment 4: Navigate to the advanced options section of the attribute mapping portal. Set externalId as required.

Part 3: Select users or groups to sync

Step 8

In your Azure portal, select Users and Groups in the left panel.

Step 9

Select Add User/Group, then click None Selected.

Step 10

Identify a net new user to be added to Front. If the user already existed in Front and was deleted this will likely cause an error.

Step 11

Select the user, then click Assign at the bottom left of the screen.

Step 12

Click back to the Provisioning section of your Azure portal, then click Start provisioning.

Step 13

By default, the provisioning cycle runs once every 40 minutes. Check the provisioning logs to verify successful provisioning. Ideally we something like the screenshot below. 

You can also confirm whether a user was successfully provisioned in Front via the Teammates tab in your company settings.

Part 4: Provisioning with templates (optional)

You can apply teammate templates to a user or Group in Azure AD when they are provisioned in Front. Teammate templates allow you to set a new user’s default values for several fields including:

  • Team and inbox access
  • Custom fields
  • User preferences

Teammate templates can only be used upon initial user creation. A template cannot be applied to an existing user, and users will not stay in sync with edits to the template.

It is assumed that user provisioning from Azure AD has already been set up per the steps in Parts 1-3.

Create teammate templates

Step 1

In Front, create at least two teammate templates as explained in this article. It is necessary to create two templates due to a limitation of Azure AD. If you only require one template, we recommend creating a dummy template just for the purpose of the integration.

Step 2

For each template, take a note of the template ID in the Overview tab.

Create app roles

Step 3

In Azure Active Directory, navigate to App registrations in the left panel and go to the All applications tab. Click on your Front application.

Step 4

In the left panel, navigate to App roles. You will need to create an app role for each teammate template. To do this, click Create app role.

Step 5

Enter the following values in the Create app role form:

  1. Display name: The template ID, as described in Step 2
  2. Allowed member types: User/Groups
  3. Value: The template ID again
  4. Description: Free text. We recommend including the name of the template given in Front as part of the description.
  5. Do you want to enable this app role?: Yes

Step 6

Click the Apply button to finish creating the app role. Follow Steps 3-5 again for each template. You must create at least two app roles as explained in Step 1.

Set up attribute mappings

Step 7

Navigate back to the Azure Active Directory home. Click Enterprise applications and select your app. In the left panel, navigate to Provisioning, then click on Edit provisioning.

Step 8

In the Mappings section, click Provision Azure Active Directory Users.

Step 9

Scroll down the page, and select Show advanced options. Then click Edit attribute list for custommapsso.

Step 10

At the bottom of the table, add a new item:

  1. Name: urn:ietf:params:scim:schemas:extension:frontapp:teammate:template
  2. Type: String
  3. All other fields: Leave blank

Step 11

Click Save to return to the attribute mapping page. At the bottom of the Attribute Mappings table, click Add New Mapping.

Step 12

In the Edit Attribute form, enter the following information:

  1. Mapping type: Expression
  2. Expression: SingleAppRoleAssignment([appRoleAssignments])
  3. Default value: Leave blank
  4. Target attribute: Select urn:ietf:params:scim:schemas:extension:frontapp:teammate:template
  5. Match objects using this attribute: No
  6. Apply this mapping: Only during object creation

Step 13

Save this new attribute and confirm. The attribute mapping is now complete.

Apply template to teammates

The final task is to apply the template to the desired teammates. This can be done be either applying the role created earlier to a user or to a Group. We recommend using Groups to assign templates, as new users added to the Group in Azure AD will automatically be provisioned with the correct template in Front.

Step 14

Navigate back to the Azure Active Directory home, then to Enterprise applications and select your app. In the left panel navigate to Users and Groups.

Step 15

Select the checkbox on the left of the users/Groups you want to assign the template to, and then click Edit assignment.

Step 16

Click on the text under Select a role (e.g. click None Selected). A panel will appear on the right hand side. Select the template ID of the template you want to assign to these users/Groups, then click Select at the bottom of this panel to confirm.

Step 17

Click on Assign at the bottom of the page. The template has now been assigned to the user/Groups.

You can test that the set up is successful by checking the logs after the next sync. You can also use Azure AD’s Provision on demand function, to test the provisioning immediately.

Remove a user

You can remove a user from your custom application portal in Azure AD. This will block the teammate account in Front.

Step 1

Open your Azure portal, then click Users and groups in the left panel.

Step 2

Check the box next to the user you’ve like to remove, then click Remove

This is effectively a soft delete, so the user will appear as Blocked in your instance of Front and their session will be immediately invalid once the next provisioning cycle completes.

This user’s Front license can now be assigned to someone else.


FAQ

What happens when I remove access to Front from Azure AD?

When you remove access to Front from Azure AD for a specific teammate, that teammate will be blocked. Should you re-authorize access to Front, the teammate will be unblocked automatically. Azure AD does not allow deleting via the integration, so users in Front are blocked, even if they are deleted in Azure AD.

What happens when someone is deleted from Azure AD?

Azure AD does not allow deleting via the integration, so users in Front are blocked, even if they are deleted in Azure AD.


Pricing

SCIM provisioning is available on the Scale plan. Some legacy plans with different names may also have this feature. 

Reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
Like Follow
  • 4 mths agoLast active
  • 260Views
  • 1 Following