Configuring API permissions and determining Entra ID SSO credentials
Before you can autoconnect to VPN using Microsoft Entra ID SSO and search user groups from Entra ID single sign on (SSO), you must configure API permissions for autoconnect and group searching, and then determine the SAML provider credentials from the Entra ID portal.
To access the Entra ID portal:
- Log into the Azure portal. You should already have an enterprise application created in Entra ID. If this has not been created, see Creating an enterprise application using FortiSASE as a template from the gallery and collecting SAML IdP URL information.
- On the homepage, do one of the following:
- Under Azure Services, click Microsoft Entra ID.
- Click the navigation menu and under All Services, click Microsoft Entra ID.
To add Microsoft Graph API application permissions required for autoconnect and searching user groups:
- In the left menu, click App registrations, then click the All applications tab.
- Look for the name of your FortiSASE enterprise application and click the hyperlinked name.
- In the left menu, click API permissions, and click Add a permission.
- In the Request API permissions slide-in, click Microsoft Graph.
- Add application permissions:
- Select Application permissions.
- In the Select permissions section, search for and select the following permissions by clicking the checkboxes next to these permissions required for group searching:
- Group > Group.Read.All – Read all groups
- GroupMember > GroupMember.Read.All – Read all group memberships\
- Click Add permissions.
-
Add delegated permissions:
- Repeat steps 1-4 to add a permission.
- Select Delegated permissions.
- In the Select permissions section, search for and select the following permissions by clicking the checkboxes next to these permissions required for autoconnect:
- Openid permissions > offline_access – Maintain access to data you have given it access
- Openid permissions > openid – Sign users in
- Openid permissions > profile – View users' basic profile
- User > User.Read – Sign in and read user profile
- Click Add permissions.
- In the API permissions page, click Grant admin consent for <domain name>. If this option is grayed out, you must log into an Entra ID admin account to perform this step. Click Yes in the Grant admin consent confirmation prompt. Observe the Grant consent successful notification at the top-right.
Also, observe the Status field shows Granted for <domain> for all the permissions added.
This step is important since it ensures that the administrator grants permissions for the enterprise application from Entra ID instead of end users requiring the administrator to log in to each instance and provide permissions.
Therefore, in summary, you should add the following Microsoft Graph permissions to support the following Entra ID features:
Feature API permission group Permission name Type VPN autoconnect OpenId permissions offline_access Delegated OpenId permissions openid OpenId permissions profile User User.read Group searching Group Group.Read.All Application GroupMember GroupMember.Read.All
To add a client secret string and determine the value of the client secret string:
- In the left menu, click App registrations, then click the All applications tab.
- Look for the name of your FortiSASE enterprise application and click the hyperlinked name.
- In the left menu, click Certificates & secrets, and click New client secret.
- In the Add a Client Secret slide-in, add a Description and select the Expires option of your choice. Click Add.
- Observe that a new client secret has been created. Immediately after creation, ensure you copy the Value of the client secret string, which FortiSASE uses as the Client Secret. This value is not visible after this initial creation step and moving to another page.
To determine the tenant and client IDs:
- In the left menu, click App registrations, then click All applications.
- Look for your FortiSASE enterprise application name and click the hyperlinked name.
- In the left menu, click Overview and note the following values:
- Application (client) ID, which FortiSASE uses as the Client ID
- Directory (tenant) ID, which FortiSASE uses as the Tenant ID
Entra ID page within specific enterprise application | Entra ID field | FortiSASE field |
---|---|---|
Overview | Directory (tenant) ID | Tenant ID |
Application (client) ID | Client ID | |
Certificates & Secrets |
Value |
Client Secret |