Zum Hauptinhalt springen

Connect with Azure AD

With kwilo's Azure AD integration, your enterprise users can instantly log in into kwilo.

In kwilo

As a kwilo administrator, go to Organization > Integration > Azure AD and copy the Redirect URI (${REDIRECT_URI}).

http://localhost:3000

kwilo-azure-ad-settings.png

In Azure AD

As an Azure AD administrator, open the app registrations in a new browser tab.

http://localhost:3000

search-for-app-registrations.png

and then click on New registration

http://localhost:3000

new-registration.png

Settings for the application registration

In the upcoming registration form, set the following values:

SettingValue
Namekwilo
Supported account typesAccounts in this organizational directory only
Redirect URIWeb
Redirect URI (URI)previously copied ${REDIRECT_URI} from kwilo
http://localhost:3000

registration-form.png

After you have added the application registration, you have to copy the Application (client) ID from Azure AD. Paste that value in kwilo's Application ID field:

http://localhost:3000

application-id.png

Create a new secret

In the left menu, select Certificates & secrets, click on the Client secrets tab and click on New client secret:

http://localhost:3000

new-client-secret.png

Fill out the form and set a reminder before the token will expire:

http://localhost:3000

client-secret-form.png

After you have added the newly created secret, copy the Value in the table and paste into into kwilo's New secret key field:

http://localhost:3000

copy-client-secret.png

Saving the settings in kwilo

In kwilo, push Configure Azure AD integration. When opening your kwilo subdomain, you will be automatically redirect to your Azure AD tenant.

Via command line

If you want to set up the Azure AD integration on the command line, you can do this with

php artisan auth:aad ${YOUR_TENANT}

You will be prompted with the Redirect URI and asked for the application ID and secret value.

Importing and synchronizing users

You can automatically let kwilo import your Azure AD's users. You can either load the users based upon their security group membership or assigned application roles. In your Azure's app registration, get the Directory (tenant) ID. In kwilo, navigate to Organization > Integration > Azure AD > Synchronization and paste the Directory (tenant) ID into AzureAD Tenant ID.

http://localhost:3000

synchronization.png

Your application registration needs the following Microsoft Graph permissions:

  1. Group.Read.All
  2. User.Read.All.

In Azure AD, navigate to your application registration > API permissions and add the required permissions:

http://localhost:3000

api-permissions.png

By security group(s)

Enter the security groups to be imported in the corresponding field.

FormatEffect
<empty>No security group will be imported
*All security group will be imported
employee_sgOnly security group employee_sg will be imported
employee_sg,admin_sgSecurity group employee_sg and admin_sg will be imported

By application role(s)

Enter the application roles you want to import in the corresponding field. In Azure AD, you have to assign the application roles and users to kwilo's Enterprise application. The format of the input field is identical to security groups.

info

Please note, that if an application role is assigned to a security group, the given security group will be imported in addition to the already configured security groups.

Via command line

You can also trigger the import of users via command line:

php artisan user:synchronize:aad ${YOUR_TENANT} {--security-groups=} {--application-roles=}