spfx project permissions grant¶
Grant API permissions defined in the current SPFx project
Usage¶
m365 spfx project permissions grant [options]
Options¶
-h, --help [help]
- Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options
,examples
,remarks
,response
,full
. Default isfull
. --query [query]
- JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
- Output type.
json,text,csv,md
. Defaultjson
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Remarks¶
Important
Run this command in the folder where the project is located from where you want to grant the permissions.
This command grant the permissions defined in: package-solution.json.
Examples¶
Grant API permissions requested in the current SPFx project
m365 spfx project permissions grant
Response¶
{
"ClientId": "6004a642-185c-479a-992a-15d1c23e2229",
"ConsentType": "AllPrincipals",
"IsDomainIsolated": false,
"ObjectId": "QqYEYFwYmkeZKhXRwj4iKRcAa6TiIbFNvGnKY1dqONY",
"PackageName": null,
"Resource": "Microsoft Graph",
"ResourceId": "a46b0017-21e2-4db1-bc69-ca63576a38d6",
"Scope": "Mail.Read"
}
ClientId : 6004a642-185c-479a-992a-15d1c23e2229
ConsentType : AllPrincipals
IsDomainIsolated: false
ObjectId : QqYEYFwYmkeZKhXRwj4iKRcAa6TiIbFNvGnKY1dqONY
PackageName : null
Resource : Microsoft Graph
ResourceId : a46b0017-21e2-4db1-bc69-ca63576a38d6
Scope : Mail.Read
ClientId,ConsentType,IsDomainIsolated,ObjectId,PackageName,Resource,ResourceId,Scope
6004a642-185c-479a-992a-15d1c23e2229,AllPrincipals,,QqYEYFwYmkeZKhXRwj4iKRcAa6TiIbFNvGnKY1dqONY,,Microsoft Graph,a46b0017-21e2-4db1-bc69-ca63576a38d6,Mail.Read
# spfx project permissions grant
Date: 2/17/2023
## QqYEYFwYmkeZKhXRwj4iKRcAa6TiIbFNvGnKY1dqONY
Property | Value
---------|-------
ClientId | 6004a642-185c-479a-992a-15d1c23e2229
ConsentType | AllPrincipals
IsDomainIsolated | false
ObjectId | QqYEYFwYmkeZKhXRwj4iKRcAa6TiIbFNvGnKY1dqONY
PackageName | null
Resource | Microsoft Graph
ResourceId | a46b0017-21e2-4db1-bc69-ca63576a38d6
Scope | Mail.Read