Setting up Microsoft 365 authentication
Overview
Microsoft 365 authentication is the secure sign-in method used by Microsoft to verify your identity when connecting applications such as Accentis Enterprise to your Microsoft 365 email account.
When you sign in, Microsoft verifies your identity and grants Accentis Enterprise permission to access your email, without ever sharing your password. Instead, they issue a secure access token that confirms who you are. This helps protect your account, and means you can revoke access at any time without changing your email password.
This guide explains the initial setup required for your database, as well as the steps each user must follow to authorise their Microsoft 365 account for use with Accentis Enterprise.
Basic steps to setup Microsoft 365 authentication
For IT team
1. Register Accentis Enterprise in the Microsoft Azure Portal
2. Create a secret value for Accentis Enterprise
3. Add permissions for Accentis Enterprise
4. Enter authorisation details into your database
5. Grant permissions for users in your database
For users
6. Authorise users in Accentis Enterprise
To enable Microsoft 365 authentication in Accentis Enterprise we need to first have your IT team setup your Microsoft 365 tenancy.
This section is for IT staff and administrators who need to:
- Configure Accentis Enterprise to send emails through Microsoft 365 authentication for the first time.
- Refer back to this document to renew the expiry for Accentis Enterprise's authorisation.
1. Register Accentis Enterprise in the Microsoft Azure Portal
- Navigate to Microsoft Azure - Registered Apps and login as an admin user.
- Click New registration.
- On the Register an application page, enter the details as below:
- Name - This can be anything. Set it to something that easily identifies that this is for Accentis so that you can refer back to it later.
- Supported account types - Leave this set as it is.
- Redirect URI (optional) - Select "Web" from the dropdown list and enter "http://localhost:3017"
- Select Register.
- Make note of the Application (client) ID and Directory (tenant) ID as you will need to enter these into Accentis Enterprise later.
2. Create a secret value for Accentis Enterprise
- From the navigation menu on the left, select Certificates & secrets and navigate to the Client secrets tab.
- Select New client secret, and enter the details as below:
- Description - This can be anything. Set it to something that easily identifies that this is for Accentis.
- Expires - Set this based on your organisation's security preferences. You will need to generate a new client secret every time your current one is about to expire to maintain authorisation.
Make sure to set a reminder to renew, or have your IT team renew, your client secret before it's due to expire.
- Select Add.
- Copy the secret Value and make note of it as you will need to enter it into Accentis Enterprise later.
- The client secret cannot be accessed again once it is closed. If you forget to copy your secret value, you will need to create a new client secret.
3. Add permissions for Accentis Enterprise
- From the navigation menu on the left, select API permissions.
- Select Add a permission.
- From the Microsoft APIs tab, select Microsoft Graph.
- Select Delegated permissions.
- Search for the permissions you require Accentis Enterprise to have:
- If you require staff to be able to send emails from Accentis Enterprise, search for and tick Mail.Send
- If you require staff to be able to drag-and-drop emails from New Outlook to Accentis Enterprise, search for and tick Mail.Read
- Select Add permissions.
4. Enter authorisation details into your database
- Log into your Accentis Enterprise database.
- Navigate to the System preferences form (System > Preferences…) and select System > Emailing / Faxing tab.
- Select Edit and enter the below details:
- Enable direct emails from Accentis Enterprise - Ensure this checkbox is ticked.
- SMTP Server - Leave this field as it is.
- Use .NET Emailer - Ensure this checkbox is ticked.
- Requires encryption (TLS / SSL) - Ensure this checkbox is ticked.
- Tenant ID - Enter the Directory (tenant) ID you noted from 1. Register Accentis Enterprise in the Microsoft Azure Portal.
- Client ID - Enter the Application (client) ID you noted from 1. Register Accentis Enterprise in the Microsoft Azure Portal.
- Client secret - Enter the secret value you noted from 2. Create a secret value for Accentis Enterprise.
- Leave the other fields as they are.
5. Grant permissions for users in your database
Each user who needs Microsoft 365 authentication will need permissions in Accentis Enterprise to run the command that authorises their account (this command is run as part of section 6. Authorise users in Accentis Enterprise).
- In your Accentis Enterprise database, navigate to the User and group permissions form (System > Users > Permissions...).
- In the List of users / groups, select a user who will need Microsoft 365 authentication and select Edit.
- Instead of selecting users individually to update their permissions, you can instead select a User group and apply permissions to all users in that group.
- In the List of functions, select the Toolbar function from the System group.
- Tick Read access in the Function column of the permissions grid, and select Update.
- Keep in mind that some users or groups may already have the required permissions assigned.
- Repeat this process for all other users / user groups that require Microsoft 365 authentication.
Removing the Toolbar permissions won’t remove a user’s authorisation if the command has already been run. It will only prevent a user from running the authorisation command.
Each user that needs Microsoft 365 authentication will need to authorise their account individually. This will only be required once per user as the tokens refresh themselves automatically.
This process needs to be performed by users themselves. Any new users that need to email using Microsoft 365 will need to follow this process when they first start.
6. Authorise users in Accentis Enterprise
- From the main Accentis toolbar, press CTRL+SHIFT+R and run SA4948.
- Tick one or both of the checkboxes corresponding to the permissions you require.
- These correspond to permissions that have been configured in the For IT team section. If you are unsure which permissions you have available, please contact your IT support or a system administrator.
- Select Run to open a Microsoft login screen in your web browser.
- Login with your Microsoft 365 credentials.
- Once logged in, you may be required to accept additional permissions.
- If you're login is successful, you will be redirected to the below page and will receive a Successfully authenticated to Office 365! message in Accentis Enterprise.
- Your account is now authorised to send emails via Microsoft 365 authentication. In Accentis Enterprise, select File > Exit and log back in for the changes to take effect.
Last edit: 20/11/2026