RightManagerRemoveAllLegitimateDataRightsExcept Method |
Removes all rights from an object
Namespace:
PsrApi.Managers
Assembly:
PsrApi (in PsrApi.dll) Version: 8.13.13.27522 (14.03.2022)
Syntaxpublic Task<Nullable<Guid>> RemoveAllLegitimateDataRightsExcept(
Guid dataId,
List<Guid> excludedLegitimateIds,
bool excludeCurrentUserOrRoleRight
)
Parameters
- dataId
- Type: SystemGuid
DataId of the object whose rights should be deleted - excludedLegitimateIds
- Type: System.Collections.GenericListGuid
List of legitimates whose rights should not be deleted - excludeCurrentUserOrRoleRight
- Type: SystemBoolean
Should at least one right for the current user stay in the database
Return Value
Type:
TaskNullableGuidThe id of the not deleted right from the current user or users role
See Also