Azure AD Enterprise Application integration (SSO/Office365)

If the users and/or resources are both available within Azure AD it's highly recommended to include GoBright as an Enterprise Application. There a few reasons to do this:

Why you should consider adding GoBright in Azure AD

  • The application can be used to set up the Office 365 integration
  • The application can be used to synchronize users from Azure AD when Automatic User Creation is setup
  • Managing users who can log in to the GoBright platform with Microsoft Single Sign-On
  • No additional configuration or scripting is required

Using this enterprise application will easily set up a connection, including SSO, while still giving you control over who is allowed to use the application.

Connect to Office 365 with PowerShell to create service account (optional)

Connecting to Office 365 with PowerShell is the easiest way to execute several configuration commands.

For connecting to Office 365 with MFA support, Microsoft provides the EXO V2 module, published through the PowerShell gallery, which can be installed with the following steps:

  1. Start PowerShell as Administrator
  2. Install the PowerShell gallery PowerShell module:
    • Execute the following commands in PowerShell (running as administrator)
    • Install the NuGet PackageProvider:
      Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
    • Configure PowerShellGallery as a trusted source:
      Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
    • Install the PowerShellGet module:
      Import-Module -Name PowerShellGet
  3. Install the EXO V2 (ExchangeOnlineManagement) module:
    Install-Module -Name ExchangeOnlineManagement -Force

    The '-Force' command makes sure that the latest version of the module is installed even when a previous installation exists. When the module was already installed, the PowerShell session will need to be restarted.

Now we can use the installed EXO V2 module to connect to Office 365:

  1. Start PowerShell as Administrator (make sure this is a new PowerShell session)
  2. Start connecting by logging in, use an account with the required permissions to manage your Office 365 environment:
    Connect-ExchangeOnline -UserPrincipalName you@yourdomain.com -ShowProgress $true
  3. When logged in, we are ready to proceed with the further configuration!
Create a service account in Office 365 with PowerShell

Service account creation:

GoBright needs a service account to link the GoBright Environment to the right Azure AD tentant.

Execute the following commands via the PowerShell session.

Now execute the following command to create the service account, please change the MicrosoftOnlineServicesID to your own name/domain and YourPasswordHere for the password you want to use for the service account:

New-Mailbox -MicrosoftOnlineServicesID gobright@yourdomain.com -Alias 'GoBright' -Name GoBright  -Password (ConvertTo-SecureString -String YourPasswordHere -AsPlainText -Force) -FirstName 'GoBright' -DisplayName 'GoBright' -ResetPasswordOnNextLogon $false

Note: now assign a regular license to the service account in the Office 365 portal, otherwise the service account will not work correctly. An 'Exchange Online (Plan 1)' license or higher is needed for the service account.

Now check if the service account is created correctly by executing the following command. The result of the command should show the mailbox of the newly created service account, if no mailbox shows up, you probably should link a license to the mailbox in the Office Admin Center. Execute the following command, replace the Identity parameter to the email address of the service account:

Get-Mailbox -Identity gobright@yourdomain.com

Authentication

The service account will need to authenticate with the GoBright platform. This is done through either basic or modern authentication within the integration. Depending on which is configured we'll discuss how it must be configured within Office 365.

Now set the service account to have a never-expiring password:

Install-Module MSOnline -Force
Connect-MsolService
Set-MsolUser -UserPrincipalName gobright@yourdomain.com -PasswordNeverExpires $true
Setting up the Enterprise Application

Now add and configure GoBright as an Enterprise application to the AzureAD of your organization. In this way, you can easily connect and manage access to GoBright.

Add GoBright as an Enterprise application:

  • Login to your AzureAD via portal.azure.com
  • Open 'Enterprise applications':
    001_-_enterprise_applications.png
  • Choose 'New application':
    002_-_enterprise_applications_-_new_app.png
  • Search for 'GoBright', click the 'GoBright' card, and click 'Sign up for GoBright':
    003_-_enterprise_applications_-_search_app.png
  • You will now be redirected, please login with the 'Sign in with Microsoft' button:
    2021-10-01_12_26.png
  • You will be presented with the Microsoft federated login page.
    Login once, and accept, this will add the 'GoBright' app to the AzureAD of your organization, still with no permissions.
    Please note: the GoBright portal will not recognize you as a user, so the login in will fail, this is correct at this stage.
    005_-_federated_microsoft_login.png

You can check if the admin consent is granted. At the left click on permissions: 

2021-10-01_12_28.png If it's not granted, then you need to give admin consent. After clicking on 'Grant admin consent for..' you need to login with your Microsoft Azure AD admin account to give permission. 

Last step is to assign groups/users to the GoBright Enterprise application:

  • Click on Users and Groups at the left part of the Enterprise Application
  • Use the 'Add user' button to add groups or users to access GoBright
    006_-_enterprise_app_settings.png
Setting up the Integration in GoBright

Integrations are configured in the Admin center. Login to GoBright with your admin account and click on the switch button on the top right corner. 

mceclip3.png

Within the Admin center you can click on the 'Integrations' at the top.

2021-09-20_09_17.png

Here you can 'Add' a new integration. Enter a name and set the 'External system' to Office 365. For the link you need to use the GoBright service account you've setup earlier on.

2021-09-20_09_38.png

For a name you can set any name. Set the 'Authentication type' to 'Modern authentication'. Click on 'Link Office365'. You will be redirected to Microsoft to login with your service account. 

This is part of the new login experience. Please click on this article to read more about it. 

Test with portal user to log in via Azure AD

If you already have users in your portal which are also present in Azure AD, you need to modify the integration that is selected for those users.

Also you can create one user for testing the Azure AD login flow.

Users are managed in the Admin center. Login to GoBright with your admin account and click on the switch button on the top right corner. 

mceclip3.png

Within the Admin center you can click on the 'Users' at the top.

2021-09-20_2.png

Click on 'Users' at the left. Here you can 'Add' new users, import Users and modify existing users. 

Please make sure that for such user:

  • The email address of the user in the portal needs to be the same as in Azure AD
  • Make sure the user has the correct integration selected

Once the user is properly configured, you can test login, e.g. by starting an incognito browser session and login to the portal with the properly configured user.

Enabling automatic user creation

To enable automatic user creations, there are two steps involved:

  1. Configure the Office 365 integration with modern authentication and automatic user creation enabled, and choose the default role for automatically created users.
  2. The platform needs to know which company domains are related to your environment, for example, '@company.com'.

Please provide these domains to GoBright via the request form.
Supply the following in your request: your organization, the domains you want to use for automatic user creation.
Please request this via this form.

When provided GoBright will configure this, and provide you with feedback.

User synchronization

It is also possible to synchronize users upfront, which might be desirable to do active user management. Please see this article for more information about synchronizing users.

2 out of 2 found this helpful