Zum Inhalt

.ShareCalendars (.azureclient Objektmethode)

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

Name

Typ

Beschreibung

UserPrincipalNames

string[]

list of Azure user principal names whose calendars are shared

CalendarRoleType

integer

role granted to the whole organisation on those calendars:
0 = None (no access)
1 = FreeBusyRead (free/busy only)
2 = LimitedRead (free/busy plus subject and location)
3 = Read
4 = Write
5 = DelegateWithoutPrivateEventAccess
6 = DelegateWithPrivateEventAccess
7 = Custom.
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.

Rückgabewert void

Kein Rückgabewert

Beispiel

xxx

Siehe auch