EasyUC for Microsoft Teams
Microsoft management: enable functions and run jobs
Enable individual management actions for Microsoft 365 per tenant, run them with a preview and trace them in the job monitor.
In EasyUC: EasyUC Teams → Microsoft management
Images come from the EasyUC lab. Names and example values provide orientation. A different interface language is indicated beside the relevant image.
What it is for
Microsoft management is available from version 4.9.67. It connects an existing Teams tenant with individually enabled management actions: manage users, licences, static groups, teams and standard channels, read or change mailbox settings, query Intune devices, the Microsoft service health and Entra changes. In addition there is the catalogue of Teams policies (chapter “Read, assign and edit Teams policies”).
Everything is switched off at first, including the public API. An update to 4.9.67, a Teams connection or an existing API access account switches nothing on. Existing Teams functions keep their settings. An administrator enables each action individually per tenant, separately for the interface and for the public API.
Enabling an action in EasyUC grants nothing at Microsoft. For each action, the app registration of the tenant needs the stated application permissions with admin consent. An enabled function is not a connection test either: only running it shows whether Microsoft allows the access.
Every write action runs as a job: check the inputs, read the preview, submit, follow it in the Job monitor. You bundle recurring sequences in Templates, for example create a cloud user, assign a licence, add a group member.
Prerequisites
- EasyUC from version 4.9.67 with the licence module
teamsand the permission Enable EasyUC Teams. - A Teams tenant with directory ID, application ID and a valid client secret under Settings. An SBC trunk is not needed for Graph actions. Actions of the Telephony group and all policies use the sign-in to Teams PowerShell of this tenant.
- View Microsoft API setup (Microsoft API-Setup ansehen,
ROLE_APP_TEAMS_API_SETUP) for the tabs Functions & API setup, API sites and Templates. Only someone who is also an administrator may change the configuration. - Read Microsoft management (Microsoft-Verwaltung lesen,
ROLE_APP_TEAMS_MANAGEMENT) for the tabs Run actions and Policies, for read queries and the preview. - Run Microsoft jobs (Microsoft-Aufträge ausführen,
ROLE_APP_TEAMS_MANAGEMENT_EDIT) to submit jobs, for templates and to cancel. The permission requires Read Microsoft management. - Microsoft job monitor (Microsoft-Auftragsmonitor,
ROLE_APP_TEAMS_MONITOR) for the Job monitor tab. - In Microsoft Entra: the application permissions of the actions you want to enable, each with admin consent. Which ones these are is stated at each action under Required Microsoft permissions. Delegated user permissions do not replace them.
Step by step: Enable actions for a tenant
Step by step: Create API sites and templates
Step by step: Run an action with a preview
Step by step: Follow jobs in the job monitor
Fields and options
| Field / action | Meaning and use |
|---|---|
| Functions & API setup | Main switch of the tenant, all actions with their ticks, the matrix of the policy types and the block Public API & access accounts. Only an administrator with the permission View Microsoft API setup can make changes. Everyone else reads. |
| API sites | Assign templates to a fixed site code. The Name is a display name. A site cannot be removed as long as a template uses it. |
| Templates | Ordered sequences of 1 to 20 steps with parameters. A template belongs to a site of the same tenant. On submission it is resolved and frozen: later changes to the template do not change an accepted job. |
| Run actions | Single function or template with a preview. The block Public API example shows the same call for the API. Secrets you entered are not carried over there. |
| Policies | Read, assign and edit Teams policies (separate chapter). |
| Job monitor | All jobs of the tenant with steps, errors and results. |
| Enable function | Allows exactly this action in the interface. Other actions stay unchanged. |
| Also allow through the public API | Also allows this action through the public API, provided the API is active for the tenant and the action has been assigned to the API access account. |
| Public API & access accounts | Enable the public Microsoft API for this tenant, plus for each API access account the grants Read configuration, Edit sites and templates, Read jobs, Submit jobs and the list Allowed functions. Manage API access accounts leads to the administration of the accounts. |
| Public API: download OpenAPI | For administrators only. Downloads the file easyuc-microsoft-public-api.openapi.json with the endpoints and the inputs of all actions. Next to it, Admin API documentation opens the description of the internal interface. |
Available actions
| Field / action | Meaning and use |
|---|---|
| Users | Show users, Create cloud user, Edit cloud user, Enable or block cloud account. A new account must change its initial password at the first sign-in. Synchronised accounts and guest accounts are excluded from the write actions. |
| Licenses | Show license inventory, Change user licenses. Direct assignments are changed. Licences a user inherits through a group are not removed. |
| Groups | Show groups, Create static group, Add group member, Remove group member. Static cloud groups only. Role-assignable and dynamic groups are excluded. |
| Teams | Show teams, Show team members, Create team, Add team member, Remove team member. Members are added as regular members. Owner rights are not granted, owners are not removed. Creating a team runs asynchronously at Microsoft. |
| Channels | Show channels, Create standard channel. Only standard channels are created. |
| Mailboxes | Show mailbox settings, Change mailbox settings: time zone, automatic replies and classic working hours. No e-mail content. |
| Devices | Show Intune devices: device name, operating system, compliance and last contact. Needs a tenant with an Intune licence. No device actions. |
| Service health | Show Microsoft service health: state of the Microsoft services subscribed for the tenant. |
| Directory audit | Show Entra changes: audit events from Microsoft Entra of the last 1 to 7 days. |
| Telephony | Check Teams telephony, Assign Teams phone number, Assign Teams policy. These three actions run through the sign-in to Teams PowerShell. |
| Policies | 45 policy types with 303 actions in total. Together with the 25 actions of the other groups, that makes 328 actions that can be enabled individually. |
Status of a job
| Field / action | Meaning and use |
|---|---|
| Queued | Durably accepted. There are steps that have not started yet. |
| Running | EasyUC is currently running a step or a status query. |
| Awaiting Microsoft | Microsoft has accepted an asynchronous operation, for example creating a team. EasyUC waits for completion and does not send a second job. |
| Succeeded | All steps are confirmed as completed. |
| Failed | The step that was run has failed. No earlier step was successful. |
| Partially completed | A later step has failed. Earlier successful changes remain in place. |
| Blocked | A step was not run because the action is no longer enabled, the triggering account is no longer valid or the ID from an earlier step is missing. Earlier successes remain in place. |
| Execution uncertain | There is no reliable confirmation whether the change was carried out at Microsoft. Check the target state before you create a new job. EasyUC does not repeat by itself. An accepted operation without confirmation is classified this way after 24 hours. |
| Cancelled | Steps that had not started were cancelled. Changes already confirmed are kept. |
| Skipped | Status of a step: after an error before it, this step was not run. |
| Retention | EasyUC removes results and actor of completed jobs after 90 days. The monitor then shows “Detailed results were deleted after 90 days. The job status is retained.” |
The public API in brief
- The same actions can be run through the public API of EasyUC. The base address is
/public-api/microsoft/v1. - For an API call, five things must come together: the management of the tenant is active, the function is enabled, it is allowed for the API, the public API is active for the tenant, and the function has been assigned to the API access account under Allowed functions.
- For a job sequence, the API access account needs Submit jobs and Read jobs. Edit sites and templates allows exactly that and nothing else. The API cannot enable its own access, functions or further accounts.
- An API access account sees and cancels only its own jobs.
- The sequence matches the interface: sign in, call the preview, submit the same content with a unique idempotency key, query the status. After a transmission error, repeat with the same key. No second job is created then.
- Endpoints, fields and examples are in the OpenAPI description that administrators download on the page, and in the API documentation of the product. The block Public API example on the Run actions tab shows the call for the function currently selected.
Limits
- EasyUC checks what is enabled again at every run and before every further step. If you switch off a function, steps that have not started yet are stopped. This does not take back a change already sent to Microsoft.
- There is no rollback. With a partially completed job, first check what has already been created, and plan the failed steps again specifically. Sending a whole job for creating a user again can produce a second object or a name conflict.
- Lists return limited pages with 1 to 100 entries. You fetch further pages with Load next results page.
- Initial passwords are neither in a saved template nor in the results. EasyUC stores the inputs of a job encrypted and deletes them after completion.
- Configuration, API access accounts, jobs and changes are recorded in the audit log.
- If the directory ID of a tenant is replaced, what was enabled before does not apply to the new directory. Enable the actions there again.
- Microsoft licences and the equipment of the tenant limit what can actually be used. Which actions work for you is shown only by running them.
Check the result and narrow down errors
- Success: the read query returns a table. A job shows Succeeded in the Job monitor, and each step shows its Result.
- “Additional Microsoft functions are disabled for this tenant. …” The main switch of the tenant is off. An administrator sets it on the Functions & API setup tab.
- “This function has not been enabled. …” Tick Enable function at the function and save.
- “You do not have Microsoft management edit permission for this change.” The account lacks Run Microsoft jobs.
- “Only an administrator with API setup access can change the configuration.” You see what is enabled but cannot change it.
- “A template still uses this site. …” First assign the template to another site.
- “This code is already in use.” Codes of sites and templates are unique per tenant.
- Code
capability_disabled: the management of the tenant or exactly this function is not enabled. - Code
invalid_operation_input: a mandatory field is missing, or a value has the wrong type. IDs are UUIDs. - Microsoft rejects the sign-in or the permission: check directory ID, application ID, validity of the client secret, the application permissions of the function and admin consent.
- HTTP 429: Microsoft is throttling. Observe the stated waiting time. A failed write job is not sent again automatically.
- A job stays Queued: have the team that operates the EasyUC installation check whether the service that processes the jobs is running and whether the licence is valid.
- Have the trace ID of the job ready for a support request. Credentials and passwords are not shown.