Start free trial

SAML SSO Guide for Entra ID Lookup 

The Entra ID Lookup field allows form users to look up other users in their SSO organisation based on a given group ID. 

Note: This field type can only be added to forms that have SSO protection set up and enabled.

This guide outlines how to configure an application client that will be used to authorise access to the Microsoft Graph API on behalf of a user.

In order to make calls to the Microsoft Graph API, users authenticate via SAML and then transparently proceed through an OAuth flow to authorise access to resources on the Microsoft Graph API.

Register an application with Microsoft Entra ID

To create a new app registration for Snapforms Microsoft Graph API access:

  1. Log into the Azure Portal using your administrative credentials.
  2. In the left menu, select Microsoft Entra ID, or use the search bar to find it.
  3. Click App registrations to see a list of your applications.
  4. Click + New registration.
  5. Enter the required details such as the application name, supported account types, and the following redirect URI, replacing {{username}} with your organisation username:
    https://{{username}}.snapforms.com.au/auth/microsoft-graph/callback
  6. Click Register.
  7. On the Overview page of the new application, record the value under ‘Application (client) ID’ and ‘Directory (tenant) ID’ marked (1) and (2) in the image below, for use in Snapforms.
  8. Click Add a certificate or secret marked (3) in the image above.
  9. Click + New client secret to create your secret.
  10. Click the copy icon and record the secret value for use in Snapforms. Once you leave this page, the secret value will never be displayed again.
  11. Contact our Support Team and provide the credentials you recorded in the previous steps. We will enable the integration on your account.

Limiting access: You may wish to limit access to this application to specific users. You’ll need to configure this from the Enterprise Application tab, which you can also reach via the ‘Managed application in local directory’ link in the application overview.  While we recommend configuring this to match your SAML configuration, Snapforms will never attempt to direct a user through this OAuth flow until the SAML flow has succeeded.

Now that your application is set up, you will need to ensure your application has the required permissions to use the Microsoft Graph Lookup field.

Add API permissions 

Before using the Microsoft Graph Lookup field in a form, your Microsoft Entra ID application will need the following Microsoft Graph API permissions:

  • User.ReadBasic.All 
  • GroupMember.Read.All 

This will provide sufficient permission to allow the retrieval of members in a given group, and information about those members.

To add Microsoft Graph API permissions:

  1. Log into the Azure Portal using your administrative credentials.
  2. In the left menu, select Microsoft Entra ID, or use the search bar to find it.
  3. Click App registrations to see a list of your applications.
  4. Select the application, e.g. Snapforms Microsoft Graph API Access.
  5. In the left menu, click API permissions.
  6. Click + Add a permission to open the Request API permissions window.
  7. Select the Microsoft Graph API.
  8. Select Delegated Permissions.
  9. Use the search bar to find ‘User.ReadBasic.All’, then check the box to select it.
  10. Use the search bar to find ‘GroupMember.Read.All’, then check the box to select it.
  11. Click Add permissions.
  12. Click Grant admin consent for [Your Organisation] and confirm the action.

 

Get an online form trial or demo absolutely free.