Prompts you for confirmation before running the cmdlet.
Parameter properties
Type:
System.Management.Automation.SwitchParameter
Supports wildcards:
False
DontShow:
False
Aliases:
cf
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-ExpirationDateTime
A format of yyyy-MM-ddTHH:mm:ssZ of DateTimeOffset indicates the expiration time of the permission.
DateTime.MinValue indicates there's no expiration set for this permission.
Optional.
Parameter properties
Type:
System.DateTime
Supports wildcards:
False
DontShow:
False
Parameter sets
UpdateViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
UpdateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-GrantedTo
identitySet
To construct, see NOTES section for GRANTEDTO properties and create a hash table.
For type permissions, the details of the users to whom permission was granted.
Read-only.
To construct, see NOTES section for GRANTEDTOIDENTITIES properties and create a hash table.
For link type permissions, the details of the users to whom permission was granted.
Read-only.
To construct, see NOTES section for GRANTEDTOIDENTITIESV2 properties and create a hash table.
Indicates whether the password is set for this permission.
This property only appears in the response.
Optional.
Read-only.
For OneDrive Personal only..
Parameter properties
Type:
System.Management.Automation.SwitchParameter
Default value:
False
Supports wildcards:
False
DontShow:
False
Parameter sets
UpdateViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
UpdateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Headers
Optional headers that will be added to the request.
Parameter properties
Type:
System.Collections.IDictionary
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
True
Value from pipeline by property name:
False
Value from remaining arguments:
False
-HttpPipelineAppend
SendAsync Pipeline Steps to be appended to the front of the pipeline
Credentials for a proxy server to use for the remote call
Parameter properties
Type:
System.Management.Automation.PSCredential
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-ProxyUseDefaultCredentials
Use the default credentials for the proxy
Parameter properties
Type:
System.Management.Automation.SwitchParameter
Default value:
False
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-ResponseHeadersVariable
Optional Response Headers Variable.
Parameter properties
Type:
System.String
Supports wildcards:
False
DontShow:
False
Aliases:
RHV
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Roles
The type of permission, for example, read.
See below for the full list of roles.
Read-only.
Parameter properties
Type:
System.String[]
Supports wildcards:
False
DontShow:
False
Parameter sets
UpdateViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
UpdateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-ShareId
A unique token that can be used to access this shared item via the shares API.
Read-only.
Parameter properties
Type:
System.String
Supports wildcards:
False
DontShow:
False
Parameter sets
UpdateViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
UpdateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-SiteId
The unique identifier of site
Parameter properties
Type:
System.String
Supports wildcards:
False
DontShow:
False
Parameter sets
UpdateExpanded
Position:
Named
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
Update
Position:
Named
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-WhatIf
Runs the command in a mode that only reports what would happen without performing the actions.
Parameter properties
Type:
System.Management.Automation.SwitchParameter
Supports wildcards:
False
DontShow:
False
Aliases:
wi
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
To create the parameters described below, construct a hash table containing the appropriate properties.
For information on hash tables, run Get-Help about_Hash_Tables.
BODYPARAMETER <IMicrosoftGraphPermission>: permission
[(Any) <Object>]: This indicates any property can be added to this object.
[Id <String>]: The unique identifier for an entity.
Read-only.
[ExpirationDateTime <DateTime?>]: A format of yyyy-MM-ddTHH:mm:ssZ of DateTimeOffset indicates the expiration time of the permission.
DateTime.MinValue indicates there's no expiration set for this permission.
Optional.
[GrantedTo <IMicrosoftGraphIdentitySet>]: identitySet
[(Any) <Object>]: This indicates any property can be added to this object.
[Application <IMicrosoftGraphIdentity>]: identity
[(Any) <Object>]: This indicates any property can be added to this object.
[DisplayName <String>]: The display name of the identity.For drive items, the display name might not always be available or up to date.
For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta.
[Id <String>]: Unique identifier for the identity or actor.
For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review.
[Device <IMicrosoftGraphIdentity>]: identity
[User <IMicrosoftGraphIdentity>]: identity
[GrantedToIdentities <IMicrosoftGraphIdentitySet[]>]: For type permissions, the details of the users to whom permission was granted.
Read-only.
[GrantedToIdentitiesV2 <IMicrosoftGraphSharePointIdentitySet[]>]: For link type permissions, the details of the users to whom permission was granted.
Read-only.
[Application <IMicrosoftGraphIdentity>]: identity
[Device <IMicrosoftGraphIdentity>]: identity
[User <IMicrosoftGraphIdentity>]: identity
[Group <IMicrosoftGraphIdentity>]: identity
[SiteGroup <IMicrosoftGraphSharePointIdentity>]: sharePointIdentity
[(Any) <Object>]: This indicates any property can be added to this object.
[DisplayName <String>]: The display name of the identity.For drive items, the display name might not always be available or up to date.
For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta.
[Id <String>]: Unique identifier for the identity or actor.
For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review.
[LoginName <String>]: The sign in name of the SharePoint identity.
[SiteUser <IMicrosoftGraphSharePointIdentity>]: sharePointIdentity
[GrantedToV2 <IMicrosoftGraphSharePointIdentitySet>]: sharePointIdentitySet
[HasPassword <Boolean?>]: Indicates whether the password is set for this permission.
This property only appears in the response.
Optional.
Read-only.
For OneDrive Personal only..
[InheritedFrom <IMicrosoftGraphItemReference>]: itemReference
[(Any) <Object>]: This indicates any property can be added to this object.
[DriveId <String>]: Unique identifier of the drive instance that contains the driveItem.
Only returned if the item is located in a drive.
Read-only.
[DriveType <String>]: Identifies the type of drive.
Only returned if the item is located in a drive.
See drive resource for values.
[Id <String>]: Unique identifier of the driveItem in the drive or a listItem in a list.
Read-only.
[Name <String>]: The name of the item being referenced.
Read-only.
[Path <String>]: Percent-encoded path that can be used to navigate to the item.
Read-only.
[ShareId <String>]: A unique identifier for a shared resource that can be accessed via the Shares API.
[SharepointIds <IMicrosoftGraphSharepointIds>]: sharepointIds
[(Any) <Object>]: This indicates any property can be added to this object.
[ListId <String>]: The unique identifier (guid) for the item's list in SharePoint.
[ListItemId <String>]: An integer identifier for the item within the containing list.
[ListItemUniqueId <String>]: The unique identifier (guid) for the item within OneDrive for Business or a SharePoint site.
[SiteId <String>]: The unique identifier (guid) for the item's site collection (SPSite).
[SiteUrl <String>]: The SharePoint URL for the site that contains the item.
[TenantId <String>]: The unique identifier (guid) for the tenancy.
[WebId <String>]: The unique identifier (guid) for the item's site (SPWeb).
[SiteId <String>]: For OneDrive for Business and SharePoint, this property represents the ID of the site that contains the parent document library of the driveItem resource or the parent list of the listItem resource.
The value is the same as the id property of that site resource.
It is an opaque string that consists of three identifiers of the site.
For OneDrive, this property is not populated.
[Invitation <IMicrosoftGraphSharingInvitation>]: sharingInvitation
[(Any) <Object>]: This indicates any property can be added to this object.
[Email <String>]: The email address provided for the recipient of the sharing invitation.
Read-only.
[InvitedBy <IMicrosoftGraphIdentitySet>]: identitySet
[RedeemedBy <String>]:
[SignInRequired <Boolean?>]: If true the recipient of the invitation needs to sign in in order to access the shared item.
Read-only.
[Link <IMicrosoftGraphSharingLink>]: sharingLink
[(Any) <Object>]: This indicates any property can be added to this object.
[Application <IMicrosoftGraphIdentity>]: identity
[PreventsDownload <Boolean?>]: If true then the user can only use this link to view the item on the web, and cannot use it to download the contents of the item.
Only for OneDrive for Business and SharePoint.
[Scope <String>]: The scope of the link represented by this permission.
Value anonymous indicates the link is usable by anyone, organization indicates the link is only usable for users signed into the same tenant.
[Type <String>]: The type of the link created.
[WebHtml <String>]: For embed links, this property contains the HTML code for an
GRANTEDTO <IMicrosoftGraphIdentitySet>: identitySet
[(Any) <Object>]: This indicates any property can be added to this object.
[Application <IMicrosoftGraphIdentity>]: identity
[(Any) <Object>]: This indicates any property can be added to this object.
[DisplayName <String>]: The display name of the identity.For drive items, the display name might not always be available or up to date.
For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta.
[Id <String>]: Unique identifier for the identity or actor.
For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review.
[Device <IMicrosoftGraphIdentity>]: identity
[User <IMicrosoftGraphIdentity>]: identity
GRANTEDTOIDENTITIES <IMicrosoftGraphIdentitySet[]>: For type permissions, the details of the users to whom permission was granted.
Read-only.
[Application <IMicrosoftGraphIdentity>]: identity
[(Any) <Object>]: This indicates any property can be added to this object.
[DisplayName <String>]: The display name of the identity.For drive items, the display name might not always be available or up to date.
For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta.
[Id <String>]: Unique identifier for the identity or actor.
For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review.
[Device <IMicrosoftGraphIdentity>]: identity
[User <IMicrosoftGraphIdentity>]: identity
GRANTEDTOIDENTITIESV2 <IMicrosoftGraphSharePointIdentitySet[]>: For link type permissions, the details of the users to whom permission was granted.
Read-only.
[Application <IMicrosoftGraphIdentity>]: identity
[(Any) <Object>]: This indicates any property can be added to this object.
[DisplayName <String>]: The display name of the identity.For drive items, the display name might not always be available or up to date.
For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta.
[Id <String>]: Unique identifier for the identity or actor.
For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review.
[Device <IMicrosoftGraphIdentity>]: identity
[User <IMicrosoftGraphIdentity>]: identity
[Group <IMicrosoftGraphIdentity>]: identity
[SiteGroup <IMicrosoftGraphSharePointIdentity>]: sharePointIdentity
[(Any) <Object>]: This indicates any property can be added to this object.
[DisplayName <String>]: The display name of the identity.For drive items, the display name might not always be available or up to date.
For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta.
[Id <String>]: Unique identifier for the identity or actor.
For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review.
[LoginName <String>]: The sign in name of the SharePoint identity.
[SiteUser <IMicrosoftGraphSharePointIdentity>]: sharePointIdentity
GRANTEDTOV2 <IMicrosoftGraphSharePointIdentitySet>: sharePointIdentitySet
[(Any) <Object>]: This indicates any property can be added to this object.
[Application <IMicrosoftGraphIdentity>]: identity
[(Any) <Object>]: This indicates any property can be added to this object.
[DisplayName <String>]: The display name of the identity.For drive items, the display name might not always be available or up to date.
For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta.
[Id <String>]: Unique identifier for the identity or actor.
For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review.
[Device <IMicrosoftGraphIdentity>]: identity
[User <IMicrosoftGraphIdentity>]: identity
[Group <IMicrosoftGraphIdentity>]: identity
[SiteGroup <IMicrosoftGraphSharePointIdentity>]: sharePointIdentity
[(Any) <Object>]: This indicates any property can be added to this object.
[DisplayName <String>]: The display name of the identity.For drive items, the display name might not always be available or up to date.
For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta.
[Id <String>]: Unique identifier for the identity or actor.
For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review.
[LoginName <String>]: The sign in name of the SharePoint identity.
[SiteUser <IMicrosoftGraphSharePointIdentity>]: sharePointIdentity
INHERITEDFROM <IMicrosoftGraphItemReference>: itemReference
[(Any) <Object>]: This indicates any property can be added to this object.
[DriveId <String>]: Unique identifier of the drive instance that contains the driveItem.
Only returned if the item is located in a drive.
Read-only.
[DriveType <String>]: Identifies the type of drive.
Only returned if the item is located in a drive.
See drive resource for values.
[Id <String>]: Unique identifier of the driveItem in the drive or a listItem in a list.
Read-only.
[Name <String>]: The name of the item being referenced.
Read-only.
[Path <String>]: Percent-encoded path that can be used to navigate to the item.
Read-only.
[ShareId <String>]: A unique identifier for a shared resource that can be accessed via the Shares API.
[SharepointIds <IMicrosoftGraphSharepointIds>]: sharepointIds
[(Any) <Object>]: This indicates any property can be added to this object.
[ListId <String>]: The unique identifier (guid) for the item's list in SharePoint.
[ListItemId <String>]: An integer identifier for the item within the containing list.
[ListItemUniqueId <String>]: The unique identifier (guid) for the item within OneDrive for Business or a SharePoint site.
[SiteId <String>]: The unique identifier (guid) for the item's site collection (SPSite).
[SiteUrl <String>]: The SharePoint URL for the site that contains the item.
[TenantId <String>]: The unique identifier (guid) for the tenancy.
[WebId <String>]: The unique identifier (guid) for the item's site (SPWeb).
[SiteId <String>]: For OneDrive for Business and SharePoint, this property represents the ID of the site that contains the parent document library of the driveItem resource or the parent list of the listItem resource.
The value is the same as the id property of that site resource.
It is an opaque string that consists of three identifiers of the site.
For OneDrive, this property is not populated.
INPUTOBJECT <ISitesIdentity>: Identity Parameter
[BaseItemId <String>]: The unique identifier of baseItem
[BaseSitePageId <String>]: The unique identifier of baseSitePage
[ColumnDefinitionId <String>]: The unique identifier of columnDefinition
[ColumnLinkId <String>]: The unique identifier of columnLink
[ContentTypeId <String>]: The unique identifier of contentType
[ContentTypeId1 <String>]: The unique identifier of contentType
[DocumentSetVersionId <String>]: The unique identifier of documentSetVersion
[DriveId <String>]: The unique identifier of drive
[EndDateTime <String>]: Usage: endDateTime='{endDateTime}'
[GroupId <String>]: The unique identifier of group
[GroupId1 <String>]: The unique identifier of group
[HorizontalSectionColumnId <String>]: The unique identifier of horizontalSectionColumn
[HorizontalSectionId <String>]: The unique identifier of horizontalSection
[IncludePersonalNotebooks <Boolean?>]: Usage: includePersonalNotebooks={includePersonalNotebooks}
[Interval <String>]: Usage: interval='{interval}'
[ItemActivityId <String>]: The unique identifier of itemActivity
[ItemActivityStatId <String>]: The unique identifier of itemActivityStat
[ListId <String>]: The unique identifier of list
[ListItemId <String>]: The unique identifier of listItem
[ListItemVersionId <String>]: The unique identifier of listItemVersion
[NotebookId <String>]: The unique identifier of notebook
[OnenoteOperationId <String>]: The unique identifier of onenoteOperation
[OnenotePageId <String>]: The unique identifier of onenotePage
[OnenoteResourceId <String>]: The unique identifier of onenoteResource
[OnenoteSectionId <String>]: The unique identifier of onenoteSection
[Path <String>]: Usage: path='{path}'
[PermissionId <String>]: The unique identifier of permission
[RelationId <String>]: The unique identifier of relation
[RichLongRunningOperationId <String>]: The unique identifier of richLongRunningOperation
[SectionGroupId <String>]: The unique identifier of sectionGroup
[SectionGroupId1 <String>]: The unique identifier of sectionGroup
[SetId <String>]: The unique identifier of set
[SetId1 <String>]: The unique identifier of set
[SiteId <String>]: The unique identifier of site
[SiteId1 <String>]: The unique identifier of site
[StartDateTime <String>]: Usage: startDateTime='{startDateTime}'
[StoreId <String>]: The unique identifier of store
[SubscriptionId <String>]: The unique identifier of subscription
[TermId <String>]: The unique identifier of term
[TermId1 <String>]: The unique identifier of term
[Token <String>]: Usage: token='{token}'
[UserId <String>]: The unique identifier of user
[WebPartId <String>]: The unique identifier of webPart
INVITATION <IMicrosoftGraphSharingInvitation>: sharingInvitation
[(Any) <Object>]: This indicates any property can be added to this object.
[Email <String>]: The email address provided for the recipient of the sharing invitation.
Read-only.
[InvitedBy <IMicrosoftGraphIdentitySet>]: identitySet
[(Any) <Object>]: This indicates any property can be added to this object.
[Application <IMicrosoftGraphIdentity>]: identity
[(Any) <Object>]: This indicates any property can be added to this object.
[DisplayName <String>]: The display name of the identity.For drive items, the display name might not always be available or up to date.
For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta.
[Id <String>]: Unique identifier for the identity or actor.
For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review.
[Device <IMicrosoftGraphIdentity>]: identity
[User <IMicrosoftGraphIdentity>]: identity
[RedeemedBy <String>]:
[SignInRequired <Boolean?>]: If true the recipient of the invitation needs to sign in in order to access the shared item.
Read-only.
LINK <IMicrosoftGraphSharingLink>: sharingLink
[(Any) <Object>]: This indicates any property can be added to this object.
[Application <IMicrosoftGraphIdentity>]: identity
[(Any) <Object>]: This indicates any property can be added to this object.
[DisplayName <String>]: The display name of the identity.For drive items, the display name might not always be available or up to date.
For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta.
[Id <String>]: Unique identifier for the identity or actor.
For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review.
[PreventsDownload <Boolean?>]: If true then the user can only use this link to view the item on the web, and cannot use it to download the contents of the item.
Only for OneDrive for Business and SharePoint.
[Scope <String>]: The scope of the link represented by this permission.
Value anonymous indicates the link is usable by anyone, organization indicates the link is only usable for users signed into the same tenant.
[Type <String>]: The type of the link created.
[WebHtml <String>]: For embed links, this property contains the HTML code for an