BookmarkSubscribeRSS Feed

Using Microsoft Entra ID (Azure Active Directory) as the Identity Provider for SAS Viya Workbench

Started ‎08-09-2024 by
Modified a month ago by
Views 659

SAS Viya Workbench requires an OpenID Connect compliant Identity Provider to authenticate users.

 

This article shows how to create a Microsoft Entra ID (formerly Azure Active Directory) App registration, and how to configure SAS Viya Workbench to use it.

 

The steps below can be performed after the tasks described in Starting with SAS Viya Workbench are completed, and an Administrator can access the SAS Viya Workbench Organization Administration page.

 

1) Create an App Registration.

  • In the Azure Portal, navigate to Microsoft Entra ID -> App Registrations.
  • Click New Registration.
  • Provide a name for the application.
  • Keep the default of Accounts in this organizational directory only for Supported Account Types. This will allow logins only from the current tenant.
hedanc_0-1723151234576.png

 

  • Click Register.

 

2) Add API permissions to the App.

  • In the Service Menu in the left, click Manage -> API Permissions.
hedanc_0-1723151653091.png

 

  • Click Add a Permission and add the following delegated Microsoft Graph API permissions to the App: emailoffline_accessopenid and profile.
hedanc_1-1723151731375.png

 

  • Click Add permissions:
hedanc_2-1723151815101.png

 

3) Start creating the SSO connection.

  • In the SAS Viya Workbench Organization Administration page, switch to the Administration tab and click New SSO Connection.
hedanc_0-1723152573329.png

 

 

4) Give the connection a meaningful name.

hedanc_1-1723152665866.png

 

5) Configure the App for authentication.

  • Click the copy button for the Login redirect URI:
hedanc_2-1723152768026.png
  • In the Azure Portal, navigate to your App registration -> Authentication.
  • Click Add a platform -> Web and paste the Redirect URI you copied above.
hedanc_0-1723155287926.png

 

  • Click Configure.

 

6) Configure credentials

  • Client Id.

Azure Portal

Workbench Organization Admin

Navigate to your App registration -> Overview and copy the Application (client) ID value.

Paste it under Credentials -> Client id in the SAS Viya Workbench SSO connection configuration.
hedanc_5-1723153275210.png

hedanc_1-1723155413763.png

 

  • Client Secret.

Azure Portal

Workbench Organization Admin

Navigate to your App registration -> Manage -> Certificates and Secrets -> Client Secrets. Click + New client secret, add a description, click Add and copy the secret's value.

Paste it under Credentials -> Client secret in the SAS Viya Workbench SSO connection configuration.
hedanc_7-1723153701358.png

 

hedanc_1-1723153842566.png

 

 

7) Import the App configuration.

  • Click Import from URL next to Configuration in the SAS Viya Workbench SSO connection configuration.
hedanc_0-1723154170272.png

 

  • Provide the OpenID Connect metadata document URL.
Azure Portal Workbench Organization Admin
Navigate to your App registration -> Overview and click Endpoints. Copy the OpenID Connect metadata document URL. Paste the URL and click Import.
hedanc_1-1723154433543.png

This is also known as the OpenID Connect Well-Known configuration endpoint.

hedanc_2-1723154500151.png

 

8 ) Save the configuration.

  • This is what your New SSO Connection dialog should look like. Click OK.
hedanc_0-1723154702498.png

 

9) Configure a Domain

  • The last step is to add one or more domains so that users can be directed to the Identity Provider configured above based on their email address.
  • In the SAS Viya Workbench Organization Administration page, click New Domain.
hedanc_0-1723176282820.png

 

 

  • Add a domain for your organization so that SAS Viya Workbench can properly direct users to your Identity Provider based on the user's email address.
hedanc_3-1723176686338.png

 

Important: The domain above is just an example. Add only domains you control for this configuration.

 

  • Click OK.
hedanc_4-1723176811721.png

 

10) Login as an Idp user.

  • Logoff as the Organization Administrator user: Click the top right icon and then Sign out.
  • Login as a user that exists in the App registration tenant.
hedanc_5-1723177048361.png

 

  • You will be redirected to Entra ID for authentication (if you are not already authenticated).
  • The user must allow SAS Viya Workbench to access the account information in the first login. Click Accept in the prompt below to do so.
hedanc_7-1723177388184.png

 

 

  • Depending on your Tenant configuration, Entra ID Admin consent for API access might be required. If that's the case, this is what users might see when attempting to login

 

need_admin_approval.png

 

If this happens, ask your Entra ID Tenant admin to grant admin consent by navigating to the App Registration -> Manage -> API Permissions -> Grant admin consent for <your tenant>.

 

apip.png

 

  • The user will be presented the SAS Viya Workbench home page. This indicates a successful login.
hedanc_8-1723177467454.png

 

That's it. Now users can start Using SAS Viya Workbench.

 

NOTE: The configuration above will allow logins from any user in the organization (tenant). If you want to restrict the App to allow logins only from assigned users, continue to step 11 below.

 

11) (Optionally) require users to be assigned to the App.

  • In the Azure Portal, navigate to Microsoft Entra ID -> Enterprise Applications.
  • Find the App you just created, open it and select Manage -> Properties.
  • Change Assignment Required to Yes, and Save.
hedanc_0-1723180703376.png

 

 

  • From this point on, only users assigned to the app will be able to login.
  • To assign a user to the app, click Manage -> Users and groups and then + Add user/group.

hedanc_1-1723180817759.png

 

Version history
Last update:
a month ago
Updated by:
Contributors

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Article Tags