Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 2.09 KB

File metadata and controls

63 lines (42 loc) · 2.09 KB
external help file Microsoft.Online.SharePoint.PowerShell.dll-Help.xml
Module Name Microsoft.Online.SharePoint.PowerShell
online version https://learn.microsoft.com/powershell/module/microsoft.online.sharepoint.powershell/get-spotenantserviceprincipalpermissiongrants
applicable SharePoint Online
title Get-SPOTenantServicePrincipalPermissionGrants
schema 2.0.0
author samkabue
ms.author speedta
ms.reviewer

Get-SPOTenantServicePrincipalPermissionGrants

SYNOPSIS

Gets the collection of permission grants for the "SharePoint Online Client" service principal

SYNTAX

Get-SPOTenantServicePrincipalPermissionGrants [<CommonParameters>]

DESCRIPTION

Gets the collection of permission grants for the "SharePoint Online Client" service principal.

A permission grant contains the following properties:

  • ClientId: The objectId of the service principal granted consent to impersonate the user when accessing the resource (represented by the resourceId).
  • ConsentType: Whether consent was provided by the administrator on behalf of the organization or whether consent was provided by an individual. The possible values are "AllPrincipals" or "Principal".
  • ObjectId: The unique identifier for the permission grant.
  • Resource: The resource to which access has been granted.
  • ResourceId: The objectId of the resource service principal to which access has been granted.
  • Scope: The value of the scope claim that the resource application should expect in the OAuth 2.0 access token.

EXAMPLES

EXAMPLE 1

Get-SPOTenantServicePrincipalPermissionGrants

Gets the collection of permission grants for the "SharePoint Online Client" service principal.

PARAMETERS

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS