Table of contents
TOC
Collapse the table of content
Expand the table of content

SecurityExtensions.RemovePermissionLevelFromUser Method

SharePoint Dev Documents|Last Updated: 5/20/2017
|
1 Contributor

Removes a permission level from a user

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static void RemovePermissionLevelFromUser(this SecurableObject securableObject, String userLoginName, String roleDefinitionName, Boolean removeAllPermissionLevels = False)

Parameters

securableObject

  Type: Microsoft.SharePoint.Client.SecurableObject
  Web/List/Item to operate against

userLoginName

  Type: System.String
  Loginname of user

roleDefinitionName

  Type: System.String
  Name of the role definition to add, Full Control|Design|Contribute|Read|Approve|Manage Heirarchy|Restricted Read. Use the correct name of the language of the site you are using

(optional) removeAllPermissionLevels

  Type: System.Boolean
  Set to true to remove all permission level.

Return Value

Type: void

See also

© 2018 Microsoft