Setting the user provider in Beezy

Share on print
Share on facebook
Share on linkedin
Share on whatsapp
Share on email

You can choose either SharePoint User Profiles or Azure Active Directory as a user provider in the application, in order to synchronize corporate user data to the application.

Using SharePoint User Profile Service as user provider

If you need to change the user provider to SharePoint User Profiles Service or change the synchronization account configured during the installation process, you can execute the following PowerShell script (from current version package, Install folder):

.beezy-SetUserSyncProvider.ps1 -UPS -SiteCollectionUrl “https://xxxxx.sharepoint.com/sites/beezy” –ConnectionCredentials (Get-Credential) -JobCredentials (Get-Credential)

In “SiteCollectionUrl” specify the first site collection you have installed.

The script will prompt for two different credentials, following this order:

  1. “ConnectionCredentials” corresponds to the site collection administrator account that will execute the script. It must be prepared to work without multi-factor authentication.
  2. “JobCredentials” corresponds to the account with SharePoint administrator role in the tenant.

spadminrole.png

This account will execute system background jobs. If it has turned on multi-factor authentication for your organization, you will need to generate an app password so the app can connect to Office 365 (https://support.office.com/en-us/article/create-an-app-password-for-office-365-3e7c860f-bda4-4441-a618-b53953ee1183).

Using Azure AD as user provider

If you need to change the user provider to Azure AD (only in cloud installations), you can execute the following PowerShell script (from current version package, Install folder):

.beezy-SetUserSyncProvider.ps1 -AzureAD -SiteCollectionUrl “https://xxxxx.sharepoint.com/sites/beezy” -ConnectionCredentials (Get-Credential)

In “SiteCollectionUrl” specify the first site collection you have installed.

“ConnectionCredentials” corresponds to the site collection administrator account that will execute the script. It must be prepared to work without multi-factor authentication.

Reset Azure AD changes delta token

After each successful sync job execution a Microsoft Graph changes delta token is stored in the database. This token is necessary to detect only the changes that have occurred since the last execution.

In some situations it may be necessary to reset this token. To do this you can execute the following PowerShell script (from current version package, Install folder):

.beezy-SetUserSyncProvider.ps1 -AzureAD -SiteCollectionUrl “https://xxxxx.sharepoint.com/sites/beezy” -ConnectionCredentials (Get-Credential) -Reset