EasyUC for Microsoft Teams
Graph access and Teams admin sign-in
Store the app registration for Microsoft Graph and sign EasyUC in to Teams PowerShell.
In EasyUC: EasyUC Teams → Teams → Teams Tenants → tenant → Settings → Microsoft Graph / Set up the trunk in Teams
What it is for
EasyUC talks to Microsoft in two ways. Through Microsoft Graph it reads users, presence and Teams phones. Through Teams PowerShell it sets up the trunk, the voice routes and the number assignments. Both ways need a permission in the customer’s Microsoft tenant.
For Graph you register an application in the customer’s tenant and store its application ID and client secret in EasyUC. The same app registration can also handle the sign-in to Teams PowerShell. EasyUC then signs in by itself before every action, and saving a script sets the route in Teams without intervention.
Without an app registration the device code sign-in remains: a Teams administrator confirms the sign-in in the browser. This session expires after about an hour. EasyUC never stores an administrator’s user name and password.
Prerequisites
- Licence module
teams. Without this module the EasyUC Teams workspace does not appear. - Role EasyUC Teams (
ROLE_APP_TEAMS_WORKSPACE) with the sub-permissions TENANTS (ROLE_APP_TEAMS_TENANTS) to read and TENANTS bearbeiten (ROLE_APP_TEAMS_TENANTS_EDIT) to change. - The tenant exists and the Directory (tenant) ID is entered.
- An account with the right to create app registrations in the customer’s Microsoft tenant and to grant admin consent.
- For the device code sign-in: an account with the Teams Administrator role.
- The EasyUC PowerShell service is running. The tenant page shows this under Set up the trunk in Teams.
Step by step: Prepare the app registration in Microsoft Entra
Step by step: Store and test Graph access in EasyUC
Step by step: Sign in to Teams PowerShell with the app registration
Step by step: Sign in with a Teams administrator by device code
Fields and options
| Field / action | Meaning and use |
|---|---|
| Application (client) ID | GUID of the app registration in the customer’s tenant. |
| Client secret | Value of the client secret. If one is stored, the field shows “stored - leave empty to keep”. The secret is never displayed. |
| Remove stored secret | Marks the stored secret for deletion. It is removed on the next Save. |
| Test credentials | Reads users from the directory as a test and stores the result with a timestamp. States in the header: Checked, Rejected, Not checked yet, Credentials missing. |
| Sign in with the app registration | Sign-in to Teams PowerShell with application ID and client secret. Appears only when both are stored. In practice it does not expire. |
| Sign in with a Teams admin | Device code sign-in of an administrator. Expires after about an hour. |
| Check connection | Reads the sign-in state again. |
| Sign out | Ends the session at Teams PowerShell. The trunk is not affected. |
| Status pill | Signed in, Signs in automatically, Waiting for confirmation, Not signed in, Sign-in expired or Service not reachable. |
Check the result and narrow down errors
- Graph success: the tenant’s Users section shows the users of the directory, the Phones section shows the inventory.
- PowerShell success: in the box Set up the trunk in Teams, Show what would happen and Update routes can be used, and the Number plan section loads phone numbers.
- „Es sind noch keine vollständigen Graph-Zugangsdaten hinterlegt (Verzeichnis-ID, Anwendungs-ID und Secret).“ One of the three details is missing. Save before testing.
- “The directory (tenant) ID above is also required.” Enter the GUID in the tenant settings.
- State Rejected: check the client secret and its expiry date, the application permissions and the admin consent in the correct tenant.
- „Verbindung steht, das Verzeichnis liefert aber keine Benutzer.“ The sign-in works, but
User.Read.Allis missing or has no consent. - „Der PowerShell-Dienst ist nicht erreichbar - ohne ihn kann der Trunk nur von Hand in Teams angelegt werden.“ Check in the EasyUC Manager that the PowerShell service of the Teams module is running.
- “The device code sign-in has expired” Sign in again or store an app registration.
- „Die Anmeldung wurde nicht bestaetigt. Bitte erneut starten.“ The five minutes have passed. Start the sign-in again.
- „Die Anmeldung steht, aber dem Konto fehlen die Rechte. Der App-Registrierung muss die Verzeichnisrolle „Teams-Administrator“ zugewiesen sein.“ Assign the role in Microsoft Entra.
- A successful Graph test does not prove rights for Teams PowerShell and vice versa. Check both ways separately.