Feb 16 2022 09:21 AM
I'm trying to set the default calendar permissions for a user. The documentation says the email address should be null for "My Organization" access, but if I don't set an email address it throws an error that says "Email address needs to be specified when sharing calendar". What am I doing wrong?
var calendarPermission = new CalendarPermission
{
IsInsideOrganization = true,
IsRemovable = true,
Role = CalendarRoleType.Read
};
await client.Users[userId].Calendar.CalendarPermissions
.Request()
.AddAsync(calendarPermission);