Calendars.ReadWrite.Shared
Allows the app to create, read, update and delete events in all calendars in the organization user has permissions to access. This includes delegate and shared calendars.
Permission Details
Read and write user and shared calendars
Allows the app to create, read, update and delete events in all calendars in the organization user has permissions to access. This includes delegate and shared calendars.
12466101-c9b8-439a-8589-dd09ee67e8e9
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
allowedOnlineMeetingProviders |
onlineMeetingProviderType collection |
Represent the online meeting service providers that can be used to create online meetings in this calendar. The possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness. |
canEdit |
BooleanNullable |
true if the user can write to the calendar, false otherwise. This property is true for the user who created the calendar. This property is also true for a user who shared a calendar and granted write access. |
canShare |
BooleanNullable |
true if the user has permission to share the calendar, false otherwise. Only the user who created the calendar can share it. |
canViewPrivateItems |
BooleanNullable |
If true, the user can read calendar items that have been marked private, false otherwise. |
changeKey |
StringNullable |
Identifies the version of the calendar object. Every time the calendar is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. |
color |
calendarColor |
Specifies the color theme to distinguish the calendar from other calendars in a UI. The property values are: auto, lightBlue, lightGreen, lightOrange, lightGray, lightYellow, lightTeal, lightPink, lightBrown, lightRed, maxColor. |
defaultOnlineMeetingProvider |
onlineMeetingProviderType |
The default online meeting provider for meetings sent from this calendar. The possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness. |
hexColor |
StringNullable |
The calendar color, expressed in a hex color code of three hexadecimal values, each ranging from 00 to FF and representing the red, green, or blue components of the color in the RGB color space. If the user has never explicitly set a color for the calendar, this property is empty. Read-only. |
id |
String |
The calendar's unique identifier. Read-only. |
isDefaultCalendar |
BooleanNullable |
true if this is the default calendar where new events are created by default, false otherwise. |
isRemovable |
BooleanNullable |
Indicates whether this user calendar can be deleted from the user mailbox. |
isTallyingResponses |
BooleanNullable |
Indicates whether this user calendar supports tracking of meeting responses. Only meeting invites sent from users' primary calendars support tracking of meeting responses. |
name |
StringNullable |
The calendar name. |
owner |
emailAddress |
If set, this represents the user who created or added the calendar. For a calendar that the user created or added, the owner property is set to the user. For a calendar shared with the user, the owner property is set to the person who shared that calendar with the user. |
calendarPermissions |
calendarPermission collection |
The permissions of the users with whom the calendar is shared. |
Showing 15 of 19 properties.
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"allowedOnlineMeetingProviders": [
"string"
],
"canEdit": "boolean",
"canShare": "boolean",
"canViewPrivateItems": "boolean",
"changeKey": "string",
"color": "String",
"defaultOnlineMeetingProvider": "string",
"hexColor": "String",
"id": "string (identifier)",
"isDefaultCalendar": "boolean",
"isRemovable": "boolean",
"isTallyingResponses": "boolean",
"name": "string",
"owner": {
"@odata.type": "microsoft.graph.emailAddress"
}
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
calendarPermissions |
calendarPermission collection |
The permissions of the users with whom the calendar is shared. |
calendarView |
Event collection |
The calendar view for the calendar. Navigation property. Read-only. |
events |
Event collection |
The events in the calendar. Navigation property. Read-only. |
multiValueExtendedProperties |
multiValueLegacyExtendedProperty collection |
The collection of multi-value extended properties defined for the calendar. Read-only. Nullable. |
singleValueExtendedProperties |
singleValueLegacyExtendedProperty collection |
The collection of single-value extended properties defined for the calendar. Read-only. Nullable. |
allowedOnlineMeetingProviders |
array |
Represent the online meeting service providers that can be used to create online meetings in this calendar. The possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness. |
owner |
object |
If set, this represents the user who created or added the calendar. For a calendar that the user created or added, the owner property is set to the user. For a calendar shared with the user, the owner property is set to the person who shared that calendar with the user. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
| Methods |
|---|
POST
/me/findMeetingTimes
|
POST
/users/{id|userPrincipalName}/findMeetingTimes
|
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
| Methods |
|---|
POST
/me/findMeetingTimes
|
POST
/users/{id|userPrincipalName}/findMeetingTimes
|
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Me.FindMeetingTimes;
using Microsoft.Graph.Models;
var requestBody = new FindMeetingTimesPostRequestBody
{
Attendees = new List<AttendeeBase>
{
new AttendeeBase
{
Type = AttendeeType.Required,
EmailAddress = new EmailAddress
{
Name = "Alex Wilbur",
Address = "[email protected]",
},
},
},
LocationConstraint = new LocationConstraint
{
IsRequired = false,
SuggestLocation = false,
Locations = new List<LocationConstraintItem>
{
new LocationConstraintItem
{
ResolveAvailability = false,
DisplayName = "Conf room Hood",
},
},
},
TimeConstraint = new TimeConstraint
{
ActivityDomain = ActivityDomain.Work,
TimeSlots = new List<TimeSlot>
{
new TimeSlot
{
Start = new DateTimeTimeZone
{
DateTime = "2019-04-16T09:00:00",
TimeZone = "Pacific Standard Time",
},
End = new DateTimeTimeZone
{
DateTime = "2019-04-18T17:00:00",
TimeZone = "Pacific Standard Time",
},
},
},
},
IsOrganizerOptional = false,
MeetingDuration = TimeSpan.Parse("PT1H"),
ReturnSuggestionReasons = true,
MinimumAttendeePercentage = 100d,
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Me.FindMeetingTimes.PostAsync(requestBody, (requestConfiguration) =>
{
requestConfiguration.Headers.Add("Prefer", "outlook.timezone=\"Pacific Standard Time\"");
});
const options = {
authProvider,
};
const client = Client.init(options);
const meetingTimeSuggestionsResult = {
attendees: [
{
type: 'required',
emailAddress: {
name: 'Alex Wilbur',
address: '[email protected]'
}
}
],
locationConstraint: {
isRequired: false,
suggestLocation: false,
locations: [
{
resolveAvailability: false,
displayName: 'Conf room Hood'
}
]
},
timeConstraint: {
activityDomain: 'work',
timeSlots: [
{
start: {
dateTime: '2019-04-16T09:00:00',
timeZone: 'Pacific Standard Time'
},
end: {
dateTime: '2019-04-18T17:00:00',
timeZone: 'Pacific Standard Time'
}
}
]
},
isOrganizerOptional: 'false',
meetingDuration: 'PT1H',
returnSuggestionReasons: 'true',
minimumAttendeePercentage: 100
};
await client.api('/me/findMeetingTimes')
.post(meetingTimeSuggestionsResult);
Import-Module Microsoft.Graph.Users.Actions
$params = @{
attendees = @(
@{
type = "required"
emailAddress = @{
name = "Alex Wilbur"
address = "[email protected]"
}
}
)
locationConstraint = @{
isRequired = $false
suggestLocation = $false
locations = @(
@{
resolveAvailability = $false
displayName = "Conf room Hood"
}
)
}
timeConstraint = @{
activityDomain = "work"
timeSlots = @(
@{
start = @{
dateTime = "2019-04-16T09:00:00"
timeZone = "Pacific Standard Time"
}
end = @{
dateTime = "2019-04-18T17:00:00"
timeZone = "Pacific Standard Time"
}
}
)
}
isOrganizerOptional = "false"
meetingDuration = "PT1H"
returnSuggestionReasons = "true"
minimumAttendeePercentage = 100
}
# A UPN can also be used as -UserId.
Find-MgUserMeetingTime -UserId $userId -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.users.item.find_meeting_times.find_meeting_times_request_builder import FindMeetingTimesRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
from msgraph.generated.users.item.find_meeting_times.find_meeting_times_post_request_body import FindMeetingTimesPostRequestBody
from msgraph.generated.models.attendee_base import AttendeeBase
from msgraph.generated.models.attendee_type import AttendeeType
from msgraph.generated.models.email_address import EmailAddress
from msgraph.generated.models.location_constraint import LocationConstraint
from msgraph.generated.models.location_constraint_item import LocationConstraintItem
from msgraph.generated.models.time_constraint import TimeConstraint
from msgraph.generated.models.activity_domain import ActivityDomain
from msgraph.generated.models.time_slot import TimeSlot
from msgraph.generated.models.date_time_time_zone import DateTimeTimeZone
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = FindMeetingTimesPostRequestBody(
attendees = [
AttendeeBase(
type = AttendeeType.Required,
email_address = EmailAddress(
name = "Alex Wilbur",
address = "[email protected]",
),
),
],
location_constraint = LocationConstraint(
is_required = False,
suggest_location = False,
locations = [
LocationConstraintItem(
resolve_availability = False,
display_name = "Conf room Hood",
),
],
),
time_constraint = TimeConstraint(
activity_domain = ActivityDomain.Work,
time_slots = [
TimeSlot(
start = DateTimeTimeZone(
date_time = "2019-04-16T09:00:00",
time_zone = "Pacific Standard Time",
),
end = DateTimeTimeZone(
date_time = "2019-04-18T17:00:00",
time_zone = "Pacific Standard Time",
),
),
],
),
is_organizer_optional = False,
meeting_duration = "PT1H",
return_suggestion_reasons = True,
minimum_attendee_percentage = 100,
)
request_configuration = RequestConfiguration()
request_configuration.headers.add("Prefer", "outlook.timezone=\"Pacific Standard Time\"")
result = await graph_client.me.find_meeting_times.post(request_body, request_configuration = request_configuration)
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Delegated permissions and search for Calendars.ReadWrite.Shared
Grant Admin Consent
Users can consent to this permission during sign-in.