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

#### Beschreibung

Grants one recipient a role on the calendars of the given users. Use ShareCalendars to set the role for everybody in the organisation instead. Errors are not raised in Opus, they are written to the log.

#### Argumente

<table style="table-layout: fixed; width: min(100%, 1011px);"><colgroup><col style="width: 15.7%"><col style="width: 8.9%"><col style="width: 75.4%"></colgroup><tr><th><p>Name</p></th><th><p>Typ</p></th><th><p>Beschreibung</p></th></tr><tr><td><p>UserPrincipalNames</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/string/"><u>string</u></a><u>[]</u></p></td><td><p>list of Azure user principal names whose calendar permissions are set</p></td></tr><tr><td><p>RecipientEmailAddress</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/string/"><u>string</u></a></p></td><td><p>e-mail address of the recipient to whom the permission is granted</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 that recipient: <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

---
