Create a Service user to make calls from Microsoft Teams
Create a service user role to be able to start online meetings on behalf of users in Microsoft Teams.
Before you begin
Role required: admin
Procedure
- Log in to Microsoft Azure portal.
-
Create a Service user.
- Navigate to Azure services > User.
- Select New user.
-
On the form, fill the fields.
Table 1. New user Field Description User name Option to provide the user name for the user. Name Option to provide the name of the user. - Select Create.
-
Select the created user to view the details.
Note:Ensure that the Service User has the required license/subscription and a valid usage location set to make conference calls from Microsoft Teams.
-
Run the PowerShell command from Terminal on macOS or from the Command prompt on Windows OS.
- Type the command pwsh and press Enter.
- Connect your Microsoft tenant with PowerShell.
-
Run the following command in PowerShell.
connect-microsoftteamsUpon successful connection, a confirmation message is displayed in the browser.
PowerShell will also display the tenant details.
-
Run the command below to create a new Application Access Policy in PowerShell.
Use the bot ID created in step 3 in the section Create an app in Microsoft Teams to enable making calls as the AppId for the command.
For more information on the application access policy, see Configure application access to online meetings.Syntax: New-CsApplicationAccessPolicy -Identity "<PolicyName (can be anything)>" -AppIds "<AppIds>" -Description "<Policy Description>" Example: If you have a Self-configured (single tenant) setup, use the application ID from Azure portal. For Example: New-CsApplicationAccessPolicy -Identity "OnlineMeetingsAccessPolicy" -AppIds "aaaaaaaa-1234-er4r-8dc9-123456789012" -Description "Grant OnlineMeeting Application Permission"Upon successfully creating the policy, the details are displayed in PowerShell.
-
Run the user permission policy in PowerShell.
- Go to the Microsoft Azure portal.
- Navigate to Home > Users.
- Select the user created.
- Copy the Object ID of the user to notepad.
-
Use the policy name created in the previous step as the PolicyName of the command and the Object ID as the UserAzureID respectively in the command
to execute in PowerShell.
Syntax: Grant-CsApplicationAccessPolicy -Identity "<UserAzureID>" -PolicyName "<PolicyName>" Example: Grant-CsApplicationAccessPolicy -Identity "fdcd9c17-ceae-468f-906f-2er76b4dd0f4" -PolicyName "OnlineMeetingsAccessPolicy"