EasyUC
4.9.49

EasyUC for Microsoft Teams

Read, assign and edit Teams policies

Enable Teams policies per tenant, assign them to users, reset them to inheritance and create or change named definitions.

EasyUC · Version 4.9.49

In EasyUC: EasyUC Teams → Microsoft management → Policies

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

From version 4.9.67, EasyUC manages user-related Teams policies. The catalogue covers 45 policy types, for example Chat and messaging, Meetings, Calling, Voice routing, Voicemail or Tenant dial plan. The types and their settings are fixed. Free cmdlets or PowerShell expressions cannot be entered.

Per type there are up to seven actions, which the interface names as follows: List, Read definition, Read user assignment, Assign, Use inheritance, Create and Edit. Together that is 303 actions. Each is switched off at first and is enabled individually per tenant, separately for the interface and for the public API.

You work in two places: on the Policies tab of Microsoft management and on the Policies tab of a Teams user profile. The tab in the profile appears only once at least one action for user assignments is enabled for the tenant. Definitions are still maintained in Microsoft management.

The basics are in the chapter “Microsoft management: enable functions and run jobs”: permissions, enabling, preview, job and job monitor.

Prerequisites

  • EasyUC from version 4.9.67. Microsoft management is switched on for the tenant.
  • A working sign-in to Teams PowerShell for this tenant. The policies run through this sign-in. Enabling an action in EasyUC does not replace a role at Microsoft: the signed-in account or the app registration needs a suitable role there, for example Teams administrator.
  • To enable types, actions and names: administrator with the permission View Microsoft API setup (Microsoft API-Setup ansehen).
  • To read definitions and assignments: Read Microsoft management (Microsoft-Verwaltung lesen). This permission also decides whether the Policies tab appears in the user profile.
  • To assign, reset, create and edit: also Run Microsoft jobs (Microsoft-Aufträge ausführen).
  • To follow the job afterwards: Microsoft job monitor (Microsoft-Auftragsmonitor).
  • For the user profile: View Microsoft 365 tenants, so that the profile can be opened.

Step by step: Enable types, actions and names

  1. Open Microsoft management and the Functions & API setup tab. Check that Enable additional Microsoft management for this tenant is ticked.
  2. Go to the section Enable policy types & actions individually. Narrow down the table with Search functions or with the Group Policies.
  3. Each row is a policy type with its name and technical name, for example Chat and messaging and TeamsMessagingPolicy. Below them are notes from Microsoft on this type, where there are any.
  4. Tick Function for each action. For the public API, also tick API. A dash means: this action does not exist for the type.
  5. Start with the read actions List, Read definition and Read user assignment. Enable Assign and Use inheritance only when assignments are to be changed, Create and Edit only if definitions are maintained in EasyUC.
  6. Watch the tag in the row: “User tab: type enabled” appears as soon as Read user assignment, Assign or Use inheritance is active. This type then also appears on the Policies tab of the user profiles.
  7. For a type with Assign, expand the item Allowed names for assignments. Under Name access, choose All named policies or Selected names only.
  8. With Selected names only, enter under Allowed names (one per line) the policies that may be assigned. At most 100 names per type. An empty selection blocks assignments for this type.
  9. Click Save changes.

Step by step: Read and change the assignment of a user

  1. In Microsoft management, open the Policies tab and choose the Policy type. Search policy types narrows the selection.
  2. Click Load existing policies. EasyUC reads the policies of this type from Microsoft Teams. The time is shown under “Read from Microsoft”.
  3. In the section User assignment & inheritance, enter the object ID of the user under Entra user object ID. You find it in the Teams user profile under Entra ID object ID.
  4. Click Read user assignment. EasyUC shows Directly assigned, Effective policy and Effective policy source separately.
  5. Under Existing policy, choose the policy the user is to get. The selection needs Read definition to be enabled, because EasyUC reads the chosen policy in the process. It is then shown as Selected target policy in the section. The Global policy cannot be assigned.
  6. Click Preview assignment. The preview Planned execution names type, tenant and user and compares the last read value with the planned change.
  7. Click Submit job. The job appears with its status. Open in monitor shows the steps.
  8. Afterwards, read the assignment again with Read user assignment. Distribution at Microsoft can take time. A successful job does not yet confirm the behaviour on all clients.

Step by step: Use inheritance

  1. First read the assignment of the user with Read user assignment. If Directly assigned shows “No direct assignment”, there is nothing to reset. The button is then locked.
  2. Click Remove direct assignment – preview inheritance. This is the action that is called Use inheritance where the actions are enabled.
  3. Read the preview. Under Planned change it says “Remove direct assignment; resolve inheritance again”.
  4. Click Submit job.
  5. Read the assignment again. Effective policy source shows what Microsoft determines for this user, for example Group assignment or Global default. Distribution at Microsoft can take time.

Step by step: Read, create or edit a definition

  1. On the Policies tab, choose the type and click Load existing policies.
  2. Under Existing policy, choose a policy. Filter loaded policies narrows the list. If a policy is missing from a limited list, enter its exact name under Read a policy by name and click Read definition.
  3. Read the table with Setting and Read value.
  4. To change, click Edit. To create, click New policy and enter the Policy name: 1 to 128 characters, without a colon and without the wildcards *, ?, [ and ].
  5. Tick each setting you want to send and enter the value. Only ticked settings are sent. When editing, the others stay unchanged. When creating, the default values of Microsoft apply to them. With more than eight settings, Search settings helps.
  6. A list you send replaces the previous list completely. Therefore check dial rules, PSTN usages and emergency numbers in full.
  7. Click Validate inputs & preview. For each setting, the preview compares Before / last read and Planned change.
  8. Click Submit job. Until then the top of the page shows “The policy draft has not been submitted.” Discard changes discards the draft.
  9. A newly created policy is not assigned to anyone automatically. For a limited test, create a separate policy and assign it to a test user.

Step by step: Policies in the Teams user profile

  1. Open Users in the tenant’s menu and click the user. The profile opens.
  2. Open the Policies tab. It comes after Call list. If it is missing, one of the conditions in the section “Fields and options” is not met.
  3. Choose the Policy type. Only the types enabled for user assignments for this tenant are offered. All actions apply only to the open user. The name of this user is fixed in the section User assignment & inheritance.
  4. Click Read user assignment. Only this click queries Microsoft. Opening the tab alone reads nothing.
  5. To assign, choose a policy under Selected target policy. Load existing policies exists there only if List is enabled for the type. The selection then shows only the names enabled for assignments. Without a list, enter the exact name under Policy name.
  6. Click Preview assignment or Remove direct assignment – preview inheritance, read the preview and click Submit job.
  7. Open in monitor leads to the Job monitor of Microsoft management.

Fields and options

Fields and options
Field / actionMeaning and use
ListRead existing policies of this type. The list shows at most 500 entries and says when it has been limited.
Read definitionRead the settings of an existing policy.
Read user assignmentRead the direct and the effective policy of a user, including the source.
AssignAssign an existing named policy directly to a user.
Use inheritanceRemove the direct assignment and let Microsoft determine the effective inheritance. On the tab, the button is called Remove direct assignment – preview inheritance.
CreateCreate a named policy with explicitly selected, validated settings.
EditChange only selected settings of an existing named policy.
Name accessAll named policies or Selected names only. It restricts assignments only and applies to the interface, templates and the API. Upper and lower case do not matter in the comparison, and a leading Tag: is removed. Reading, resetting and maintaining definitions remain enabled separately. The check runs again before every step of a job that has not started yet.
Directly assignedThe policy assigned to the user directly, or “No direct assignment”.
Effective policyThe policy that actually applies to the user.
Effective policy sourceDirect user assignment, Group assignment, Global default or Source not confirmed.
Policies tab in the user profileAppears only when three things come together: the permission Read Microsoft management, Microsoft management switched on for the tenant and at least one enabled action Read user assignment, Assign or Use inheritance. If none is enabled, the profile stays as before.

Inheritance, Global and group policies

  • Direct, group and Global are three different sources. EasyUC shows the direct assignment and the effective policy separately and names the source.
  • Use inheritance removes only the direct assignment of the user. After that, Microsoft decides which group policy or global default applies. This does not automatically mean Global. The action does not delete any policy definition.
  • The Global policy is never assigned directly. It is locked in the selection, and Preview assignment stays locked for it. To get the inherited policy, reset the direct assignment.
  • Global definitions can be read, but not created, changed or deleted. In the list they carry the suffix Global. When read, they show “This global or read-only policy can only be viewed here.”
  • EasyUC shows group assignments as the source. They cannot be made or changed here. Policy packages and bulk assignment are not available either.
  • As long as the assignment has not been read, EasyUC assumes no inheritance. It then says: “The current user assignment has not been read. No inheritance is assumed.” A failed read means unknown and is no proof of a global default.
  • A name access that is restricted later can block a waiting job. It does not take back changes already transmitted to Microsoft.

Types with restrictions

  • Six types can be read, assigned and reset, but not created or edited. Where the actions are enabled, Create and Edit show a dash.
  • Outbound calling restrictions (DialoutPolicy), Media logging (TeamsMediaLoggingPolicy), Teams coexistence mode (TeamsUpgradePolicy) and Video interoperability provider (TeamsVideoInteropServicePolicy): Microsoft supplies predefined policies. Their definitions are read-only.
  • App permissions (legacy) (TeamsAppPermissionPolicy) and App setup (TeamsAppSetupPolicy): Microsoft advises against creating and changing these by PowerShell, because changes can report success without taking effect. Maintain these definitions in the Teams admin center.
  • Live events (legacy): the type is included for existing configurations. For town halls, use Town halls and webinars.
  • Personal attendant (preview): the tenant must be admitted by Microsoft to the limited preview.
  • Video conferencing for room accounts: applies to supported room accounts, not to ordinary employee accounts.
  • Settings with a complex type for which no editable schema is included stay unchanged. The interface says so at the setting.
  • The catalogue covers the types and settings included in this version. Licences, cloud variant and activations of the tenant can limit what can actually be used.

Narrow down errors

  • Success: the job shows Succeeded in the Job monitor, and Read user assignment shows the new direct assignment.
  • The error box names message, next step, component, code and trace ID, for policies also type, action, stage and command. Check in this order: sign-in to Teams PowerShell, whether the action is enabled, inputs, execution at Microsoft. Then role, licence and activation in the tenant.
  • A button stays locked: the action is not enabled for this type, the account lacks Run Microsoft jobs, or changes in Microsoft management have not been saved yet.
  • “Loading the policy list has not been enabled. …” Enable List for the type. The other actions work independently of it.
  • “This policy name is not enabled for assignments in this tenant.” The name is not in the name access of the type.
  • “No names are enabled for assignment for this policy type.” The name access is set to Selected names only with an empty list. Assignments are therefore blocked.
  • “Select an existing named policy first. …” The target policy for an assignment is missing, or Global was chosen.
  • “Enter a named policy with 1–128 characters …” The name contains a character that is not allowed, or it is Global.
  • “Explicitly select at least one setting.” No setting is ticked in the definition.
  • “This action has no valid editable schema. …” Reload the page so that EasyUC reads the catalogue again. If the included catalogue has changed, preview and job must be created again.
  • “The list was limited. …” Read the policy you are looking for by its exact name.
  • Status Execution uncertain: first read the current state at Microsoft before you submit the same job again.

Related chapters