Approve-SPOTenantServicePrincipalPermissionGrant
批准当前租户的“SharePoint Online 客户端”服务主体的权限请求。
语法
Approve-SPOTenantServicePrincipalPermissionGrant
-Resource <string>
-Scope <string>
说明
为当前租户的“SharePoint Online 客户端”服务主体添加权限。 可用于向服务主体添加所需的权限,而无需在 SharePoint 框架 解决方案文件 (sppkg) 中明确请求这些权限。
示例
------------------示例 1------------------
Approve-SPOTenantServicePrincipalPermissionGrant -Resource "Microsoft Graph" -Scope "Mail.Read"
使用范围声明“Mail.Read”为“Microsoft Graph”资源添加权限范围。
参数
-Resource
要添加的权限请求的资源。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Scope
要添加的权限请求的范围。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |