.Roles()
method.A role definition is a collection of rights bound to a specific object. Role definitions (for example, Full Control, Read, Contribute, Design, or Limited Access) are scoped to the Web site and mean the same thing everywhere within the Web site, but their meanings can differ between sites within the same site collection. Role definitions can also be inherited from the parent Web site, just as permissions can be inherited.
.RoleDefinitions()
quariable collection.api.RoleTypeKinds
.The role assignment is the relationship among the role definition, the users and groups, and the scope (for example, one user may be a reader on list 1, while another user is a reader on list 2). The relationship expressed through the role assignment is the key to making SharePoint security management role-based.
RoleAssignments
, also HasUniqueRoleAssignments
can be used in moderation.Please be aware thatHasUniqueRoleAssignments
is a heavy property that creates workload on a SharePoint server and better be used at minimal.
RoleAssigments
if any applied contains an array of objects.BasePermissions
is permissions representation with Low
and High
pair. Don't panic if API returns only BasePermissions ({ "High": "2147483647", "Low": "4294705151" }
), using HasPermissions
helper it's simple to check if it includes required permissions kind: