---
title: ".ShareCalendars (.azureclient Objektmethode)"
---
[TOC]

#### Beschreibung

Shares the calendars of the specified users with the given role. The role is written to the default calendar permission entry of each calendar, which is the permission that applies to everybody in the organisation; use SetCalendarPermission to grant a role to one single recipient. Errors are not raised in Opus, they are written to the log.

#### Argumente

<table style="table-layout: fixed; width: min(100%, 677px);"><colgroup><col style="width: 26.5%"><col style="width: 21.7%"><col style="width: 51.8%"></colgroup><tr><th><p><strong>Name</strong></p></th><th><p><strong>Typ</strong></p></th><th><p><strong>Beschreibung</strong></p></th></tr><tr><td><p>UserPrincipalNames</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/string/">string</a>[]</p></td><td><p>list of Azure user principal names whose calendars are shared</p></td></tr><tr><td><p>CalendarRoleType</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/integer/"><u>integer</u></a></p></td><td><p>role granted to the whole organisation on those calendars: <br>0 = None (no access)<br>1 = FreeBusyRead (free/busy only)<br>2 = LimitedRead (free/busy plus subject and location)<br>3 = Read<br>4 = Write<br>5 = DelegateWithoutPrivateEventAccess<br>6 = DelegateWithPrivateEventAccess<br>7 = Custom. <br>The values are those of the Microsoft Graph type calendarPermission.calendarRoleType. Values outside 0 to 7 are passed on to Graph unchanged and are rejected there.</p></td></tr></table>

#### Rückgabewert [void](../../../standard-datentypen/void.md)

Kein Rückgabewert

#### Beispiel

| `xxx` |
| --- |

#### Siehe auch

---
