Step 2A: Evoko Home: Microsoft Entra Preparation
In order to connect Evoko Home correctly to M365 you must complete the following [4] sections to collect all of the necessary information you need. These bullet points break down what information you will gather during each step. You must be a M365 Global Admin to complete this preparation.
- Microsoft App Registration
- Application (Client) ID (Needed in Evoko Home Wizard)
- Directory (Tenant) ID (Needed in Evoko Home Wizard)
- Secret Value (Needed in Evoko Home Wizard)
- Object ID (Enterprise Apps) (Needed in Power shell)
- Add API Permissions to App
- User.Read.All
- Group.Read.All
- Create Groups
- Resource Group Object ID (Needed in Power shell)
- Senders Group Object ID (Needed in Power shell)
- Principle Power shell Commands
Section 1: Microsoft App Registration
By the end of this section you will have the [4] values you need to proceed with the Evoko Home configuration with Microsoft.
- Application (Client) ID
- Directory (Tenant) ID
- Secret Value
- Object ID
- Log into the Microsoft Entra Admin Center with your Microsoft Admin Account.
- Navigate to the Applications, then App Registrations
- You will now register Evoko Home as an application in Entra. Select the + New Registration option.
- Enter a name for your application and select the register option.
- Once the application is created, the summary page will appear. Make a note of the Application (client) ID and Directory (tenant) ID as it will be needed later when connecting Evoko Home to Microsoft 365.
- We will now configure the Client Secret by navigating to Certificates & Secrets
- Select + New Client Secret
- Enter the description you want in the newly opened window, and set the expiry time. (Note that the secret should be valid for Evoko Home to work, once expired, meetings from Microsoft to Evoko will stop syncing so you will have to replace the expired client secret with a new one and re-authenticate again to Microsoft.). Press Add
- Copy down the Secret Value as this will be needed in a later step.
- Now, navigate to Enterprise Apps in the left hand column and search for the app you created in the previous step.
- Navigate to the App Properties to find the Object ID (this is different from the Object ID associated with the App Registrations page). Save this Object ID along with the Application (client) ID and Directory (tenant) ID from the prior step as it will be needed for use with Exchange Powershell in the coming steps.
- You now should have copied down the [4] values below. If you have the [4] values you can proceed to the next next of Adding API Permissions
- Application (Client) ID
- Directory (Tenant) ID
- Secret Value
- Object ID
Section 2: Adding API Permissions
By the end of this guide you will have added the following [2] permissions to your registered Application:
- User.Read.All
- Group.Read.All
- Navigate to API Permissions in the App Registration Page.
- Click on + Add a Permission, then select Microsoft Graph.
- Select Application Permission
- This will open the list of permissions for application access. Search for "User.Read" and mark User.Read.All and click Add Permission
- Repeat the same steps again, but search for "Group.Read" and mark Group.Read.All and click Add Permission.
-
- Grant Admin Consent for your Organization.
Section 3: Create Groups
- Navigate to Groups.
-
- Select New Group
-
- The group type should be Microsoft 365 and the member ship type is Assigned. (You can select any name and description as you prefer). Click Create.
- Now you will add the Rooms you want to add to Evoko Home to this group. To do do, search for the name of the group you created in the previous step and select the group.
- Click on Members from the left side.
- Select + Add Members
-
- Select the Rooms you want to use with Evoko Home and Liso, to add them - press select. In this exercise we will add [3] rooms.
- Now the group is created, and the resources have been added. Copy the resource group Object ID, this Object ID will be used later in the Service Principle Section.
- Create Senders Group: Repeat the previous steps of Group Creation, instead of adding rooms, add a user that you want to use in Evoko Home for sending the email notifications. (We recommend creating a dedicated user with a mailbox for this purpose). Press Create when done. You will see your user in the list.
- Collect the Object ID for the Senders Group as well, it will be needed later in the service principle creation section.
Section 4: Service Principle in Power shell
- Connect to Exchange Online using Powershell.
- Type: Set-ExecutionPolicy RemoteSigned and press enter on the keyboard.
-
- Type: Set-ExecutionPolicy RemoteSigned and press enter on the keyboard.
- Type: Y and press enter on the keyboard.
- Press Enter
-
- Press Enter
- Type: Connect-ExchangeOnline -UserPrincipalName user@domain.com (Replace your admin email with user@domain.com)
- Press Enter
-
- Press Enter
- Log into your Global Admin Account
- When authenticated you should get a window that looks like this.
- We will now create a Service Priniciple by running the below command. You will replace the AppID with the AppID of your registered application for Evoko Home. You will also replace the AppObjectId with the Enterprise AppObjectID from your registration. The DisplayName can be anything you prefer.
- New-ServicePrincipal -AppId <<AppId>> -ObjectId <<AppObjectId>> -DisplayName "Some Display Name"
- Press Enter
-
- Press Enter
- New-ServicePrincipal -AppId <<AppId>> -ObjectId <<AppObjectId>> -DisplayName "Some Display Name"
- Next we will create a management role assignment for the resources group. You will replace the AppID with the AppID of your registered application for Evoko Home. You will also replace the CalendarObjectID with the Calendars Group Object ID which was made in Step 7 in the previous section.
- New-ManagementRoleAssignment -App <<AppId>> -Role "Application Calendars.ReadWrite" -RecipientGroupScope <<CalendarObjectID>>
- Press Enter
- Press Enter
- New-ManagementRoleAssignment -App <<AppId>> -Role "Application Calendars.ReadWrite" -RecipientGroupScope <<CalendarObjectID>>
- Next we will create a management role assignment for the senders group. You will replace the AppID with the AppID of your registered application for Evoko Home. You will also replace the SenderObjectID with the Senders Group Object ID which was made in Step 8 in the previous section.
- New-ManagementRoleAssignment -App <<AppId>> -Role "Application Mail.Send" -RecipientGroupScope <<SenderObjectID>>
- Press Enter
-
- Press Enter
- New-ManagementRoleAssignment -App <<AppId>> -Role "Application Mail.Send" -RecipientGroupScope <<SenderObjectID>>
- That's it! You can now proceed to installing and configuring Evoko Home!