Interface IServicePrincipal
Manage the SharePoint apps service principal
Namespace: PnP.Core.Admin.Model.SharePoint
Assembly: PnP.Core.Admin.dll
Syntax
public interface IServicePrincipal
Manage the SharePoint apps service principal
public interface IServicePrincipal
Grants a Permission
IPermissionGrant AddGrant(string resource, string scope, VanityUrlOptions vanityUrlOptions = null)
System. Resource of the permission |
System. Scope of the permission |
Vanity Optionally specify the custom vanity URI's used by this tenant |
IPermission the new permission grant |
Grants scope on a resource
IPermissionGrant2 AddGrant2(string resource, string scope, VanityUrlOptions vanityUrlOptions = null)
System. The name of the resource, e.g. Microsoft Graph |
System. The scope to grant, e.g. 'User.ReadBasic.All' |
Vanity
|
IPermission The resulting IPermission |
Grants scope on a resource
Task<IPermissionGrant2> AddGrant2Async(string resource, string scope, VanityUrlOptions vanityUrlOptions = null)
System. The name of the resource, e.g. Microsoft Graph |
System. The scope to grant, e.g. 'User.ReadBasic.All' |
Vanity
|
Task<IPermission The resulting IPermission |
Grants a Permission
Task<IPermissionGrant> AddGrantAsync(string resource, string scope, VanityUrlOptions vanityUrlOptions = null)
System. Resource of the permission |
System. Scope of the permission |
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task<IPermission the new permission grant |
Approves the specified permission request
IPermissionGrant ApprovePermissionRequest(string id, VanityUrlOptions vanityUrlOptions = null)
System. permission request id |
Vanity Optionally specify the custom vanity URI's used by this tenant |
IPermission permission grant |
Approves the specified permission request
Task<IPermissionGrant> ApprovePermissionRequestAsync(string id, VanityUrlOptions vanityUrlOptions = null)
System. permission request id |
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task<IPermission permission grant |
Deletes the whole grant with all scopes.
void DeleteGrant2(string grantId, VanityUrlOptions vanityUrlOptions = null)
System. The id of the grant |
Vanity
|
Deletes the whole grant with all scopes.
Task DeleteGrant2Async(string grantId, VanityUrlOptions vanityUrlOptions = null)
System. The id of the grant |
Vanity
|
Task
void |
Denies the specified permission request
void DenyPermissionRequest(string id, VanityUrlOptions vanityUrlOptions = null)
System. permission request id |
Vanity Optionally specify the custom vanity URI's used by this tenant |
Denies the specified permission request
Task DenyPermissionRequestAsync(string id, VanityUrlOptions vanityUrlOptions = null)
System. permission request id |
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task
|
Disable the Service Principal
IServicePrincipalProperties Disable(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
IService the list of permission requests |
Disable the Service Principal
IServicePrincipalProperties Disable2(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
IService the list of permission requests |
Disable the Service Principal
Task<IServicePrincipalProperties> Disable2Async(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task<IService the list of permission requests |
Disable the Service Principal
Task<IServicePrincipalProperties> DisableAsync(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task<IService the list of permission requests |
Enable the Service Principal
IServicePrincipalProperties Enable(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
IService the list of permission requests |
Enable the Service Principal
IServicePrincipalProperties Enable2(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
IService the list of permission requests |
Enable the Service Principal
Task<IServicePrincipalProperties> Enable2Async(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task<IService the list of permission requests |
Enable the Service Principal
Task<IServicePrincipalProperties> EnableAsync(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task<IService the list of permission requests |
Lists pending permission requests
List<IPermissionRequest> GetPermissionRequests(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
List<IPermission the list of permission requests |
Lists pending permission requests
Task<List<IPermissionRequest>> GetPermissionRequestsAsync(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task<List<IPermission the list of permission requests |
Lists all granted Permissions
IEnumerable<IPermissionGrant> ListGrants(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
IEnumerable<IPermission the list of granted permissions |
Get all granted permissions of the SharePoint Online Client Extensibility Web Application Principal
IPermissionGrant2[] ListGrants2(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
IPermission The list of granted OAuth2 permissions |
Get all granted permissions of the SharePoint Online Client Extensibility Web Application Principal
Task<IPermissionGrant2[]> ListGrants2Async(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task<IPermission The list of granted OAuth2 permissions |
Lists all granted Permissions
Task<IEnumerable<IPermissionGrant>> ListGrantsAsync(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task<IEnumerable<IPermission the list of granted permissions |
Revokes a Permission
IPermissionGrant RevokeGrant(string objectId, VanityUrlOptions vanityUrlOptions = null)
System. Object Id of the permission |
Vanity Optionally specify the custom vanity URI's used by this tenant |
IPermission the revoked permission grant |
Removed a scope from an existing grant
IPermissionGrant2 RevokeGrant2(string grantId, string scope, VanityUrlOptions vanityUrlOptions = null)
System. The id of the grant |
System. The scope to remove from the grant denoted by grantId |
Vanity
|
IPermission The updated IPermission |
Removed a scope from an existing grant
Task<IPermissionGrant2> RevokeGrant2Async(string grantId, string scope, VanityUrlOptions vanityUrlOptions = null)
System. The id of the grant |
System. The scope to remove from the grant denoted by grantId |
Vanity
|
Task<IPermission The updated IPermission |
Revokes a Permission
Task<IPermissionGrant> RevokeGrantAsync(string objectId, VanityUrlOptions vanityUrlOptions = null)
System. Object Id of the permission |
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task<IPermission the revoked permission grant |