Skip to main content

Can I limit the Calendars that Display has access to?

Note - This article covers Display connected to Microsoft 365 with Microsoft Graph. If your Display solution is connected through Meetings/Planner, see Can I limit the Calendars that Meetings/Planner has access to? instead.

When Display uses Exchange (Microsoft Graph) as its data source, it connects to Microsoft 365 through an Enterprise Application that can access every room calendar in your organization by default. This article shows Microsoft 365 administrators how to limit that access to the mailboxes they choose. There are two ways to do this:

  • Role Based Access Control for Applications (Option 1)

  • Application Access Policies (Option 2)

Note - This setup is optional. Display works as expected without it, and only shows the rooms you configure in Display.

Before you begin

You need the App ID of the application you want to limit. Display uses one Enterprise Application in Microsoft Entra, created when an administrator selected Grant Consent under Settings → Exchange Service in Display:

Enterprise Application

App ID

Permissions

SIS Display – Graph

4dac3b32-f90e-4a5b-be8e-a0906d34b5c5

Application Calendars.ReadWrite

The app also has a permission to read room information (Place.Read.All), which Display uses to find your room mailboxes automatically. Exchange can't scope this permission, so Display still lists every room, but it can only show and book rooms that are in scope.

You will also need:

  • An account with sufficient admin access to Microsoft Entra ID and membership of the Organization Management role group in Exchange Online.

  • The Exchange Online PowerShell module. See Connect to Exchange Online PowerShell.

  • The email address of the Display service account, shown under Settings → Exchange Service in Display. Display uses it as the organiser of bookings made at the screen, so it must be in scope.

Which option to choose

RBAC for Applications is the go-forward method recommended by Microsoft for securing Enterprise Application level permissions. Both work correctly with Display and are both documented below. Neither option limits Delegated permissions, where the app acts as the signed-in user.
​

Note - Microsoft RBAC does NOT support nested security groups. AAP does but is deprecated in favour of RBAC by Microsoft.

Option 1: RBAC for Applications

RBAC for Applications grants an app its mailbox permissions in Exchange Online, limited to a management scope.

  1. Create the group. In the Microsoft 365 admin centre, create a mail-enabled security group and note its email address.

  2. Add members. Add every room mailbox shown on a Display screen, and the Display service account. Rooms that are not in this group can't be shown or booked on a Display screen.

  3. Find the app's Object ID. In the Microsoft Entra admin centre, open Enterprise applications and select SIS Display – Graph. Copy its Object ID. Don't use the IDs on the App registrations page: they are different values.

NOTE - The Object ID for an Enterprise App is different for each Microsoft tenant, unlike the App ID, which is consistent across multiple environments.

4. Check which permissions to scope. On the app's Permissions page, note every permission with Type Application. For Display, the permission to scope is Calendars.ReadWrite.

5. Connect to Exchange Online and set your values.
​

Connect-ExchangeOnline -UserPrincipalName [AdminEmail]

$appId = "4dac3b32-f90e-4a5b-be8e-a0906d34b5c5"

$spObjId = "[ObjectId]"

$scopeName = "SIS Display - Graph - Mailbox Scope"

$roles = @("Application Calendars.ReadWrite")

6. Register the app in Exchange Online.

New-ServicePrincipal -AppId $appId -ObjectId $spObjId -DisplayName "SIS Display - Graph"

7. Create the scope. The .Replace part stops an apostrophe in the group's name from breaking the filter.

$groupDN = (Get-DistributionGroup "[GroupEmail]").DistinguishedName.Replace("'", "''")

New-ManagementScope -Name $scopeName -RecipientRestrictionFilter "MemberOfGroup -eq '$groupDN'"

8. Assign the roles to the scope.

foreach ($r in $roles) {

New-ManagementRoleAssignment -App $spObjId -Role $r -CustomResourceScope $scopeName -Name "SIS Display - Graph - $r"
}

9. Remove these permissions from Entra ID. RBAC permissions are added on top of any permissions granted in Entra. Therefore, while permissions are still granted in Entra, the scope has no effect.

In the Microsoft Entra admin centre, open Enterprise applications, then SIS Display – Graph, then Permissions. On the Admin consent tab, select Revoke permission for

Calendars.ReadWrite.

Leave the Place.Read.All permission and any sign-in permissions in place. Exchange can't scope them, and removing them stops Display working.
​

Note - If an administrator later selects Grant admin consent for the app in Entra, or Grant Consent in Display's Exchange Service settings, the removed permission returns and the RBAC scope stops working.

Check RBAC works

Test one room that should be allowed and one that should be blocked, and compare the result with the table below.

Method

Command

Allowed result

Blocked result

RBAC

Test-ServicePrincipalAuthorization -Identity [ObjectId] -Resource [MailboxEmail]

InScope: True

InScope: False

To change who has access, simply add/remove mailboxes from the group as needed.

Note - Changes can take up to 2 hours to propagate through to Display. The test commands confirm the configuration, not that Display is enforcing it yet. See what users see when access is blocked to confirm the change in Display.

Option 2: Application Access Policies

An Application Access Policy limits an app to the members of a group.

Note: Microsoft has replaced Application Access Policies with RBAC for Applications.

  1. Create the group. In the Microsoft 365 admin centre, create a mail-enabled security group and note its email address.

  2. Add members. Add every room mailbox shown on a Display screen, and the Display service account. Rooms that are not in this group can't be shown or booked on a Display screen.

  3. Connect to Exchange Online.

Connect-ExchangeOnline -UserPrincipalName [AdminEmail]

4. Create the policy.

New-ApplicationAccessPolicy -AppId 4dac3b32-f90e-4a5b-be8e-a0906d34b5c5 -PolicyScopeGroupId "[GroupEmail]" -AccessRight RestrictAccess -Description "Restrict SIS Display - Graph to members of [GroupEmail]"Check Application Access Policies works

Test one room that should be allowed and one that should be blocked, and compare the result with the table below.

Method

Command

Allowed result

Blocked result

AAP

Test-ApplicationAccessPolicy -AppId 4dac3b32-f90e-4a5b-be8e-a0906d34b5c5 -Identity [MailboxEmail]

Granted

Denied

To change who has access, simply add/remove mailboxes from the group as needed.

Note - Changes can take up to 2 hours to propagate through to Display. The test commands confirm the configuration, not that Display is enforcing it yet. See What users see when access is blocked to confirm the change in Display.

What users see when access is blocked

Once the policy or scope is in place, Display can't access blocked mailboxes. Users see the same behaviour irrespective of the option chosen.

Booking a blocked room

When someone books a blocked room at a Display screen, the room shows as booked for a moment, then switches back to Available. The booking is not saved.

Blocked service account

Display uses the service account to make bookings at the screen, so a blocked service account affects every Display. Depending on when the service account was blocked, Display shows one of the messages below.

Existing service account blocked. When booking from a Display, this banner appears at the bottom of the screen: The service account is not authorized to perform the interaction feature you requested.
​
​

Setting a blocked account as the service account. When you save a blocked account under Settings → Exchange Service in Display, the account is saved, but the page shows: The Graph request was denied. Verify that admin consent has been granted and that the SIS Display - Graph app has the required permissions.
​
​


​Display screens after a blocked service account is saved. Each Display shows: Service Account Configuration Error. Limited functionality is available until resolved.
​


To fix this, add the service account to the group. If you are blocking a group, make sure the service account is not in it.
​
​Troubleshooting

Message or symptom

Cause

Fix

Display still can't show a room after it was added to the group

Changes haven't applied yet

Wait up to 2 hours

Invalid filter syntax ... at position NN from New-ManagementScope

The group's name contains an apostrophe, which ends the filter early

Use the .Replace("'", "''") line from Option 1, step 7, or rename the group

The [name] management scope wasn't found

The scope wasn't created, or its name doesn't match exactly

Run Get-ManagementScope and copy the name. Use the $scopeName variable in both steps

The "[permission]" management role can't be found

The permission isn't a mailbox permission, or Application is missing from the name

Use Application Calendars.ReadWrite. Leave out Place.Read.All and the sign-in permissions

Test shows the room is blocked, but Display can still show it

Calendars.ReadWrite is still granted in Entra ID

Revoke it in Entra, as in Option 1, step 9

The scope stopped working after Display was reconnected

Grant Consent in Display's Exchange Service settings granted Calendars.ReadWrite again

Revoke it in Entra again, as in Option 1, step 9

Every booking at the screen fails

The Display service account is not in scope

Add the service account to the group

A mailbox was not added to the scope after being added to the group

The mailbox is a member only through a nested group

Add the mailbox to the group directly

Note - If you run into any issues that aren't listed here, please contact our support team.

Blocking a group

The steps above let Display access only the group's members. To block the group's members and let Display access every other mailbox instead, follow the same steps with the changes below. Don't add the Display service account to a group you block.

Option 1: RBAC for Applications

RBAC for Applications has no deny setting. Instead, the scope includes every mailbox except the group's members. This translates as creating the scope with -ne instead of -eq:

New-ManagementScope -Name $scopeName -RecipientRestrictionFilter "MemberOfGroup -ne '$groupDN'"

Option 2: Application Access Policies

In step 4, use DenyAccess instead of RestrictAccess:
​

New-ApplicationAccessPolicy -AppId 4dac3b32-f90e-4a5b-be8e-a0906d34b5c5 -PolicyScopeGroupId "[GroupEmail]" -AccessRight DenyAccess -Description "Deny SIS Display - Graph to members of [GroupEmail]"
If an app has both a DenyAccess and a RestrictAccess policy that cover the same mailbox, DenyAccess takes priority.

Official documentation / Further Reading

Did this answer your question?