RightManagerRemoveAllLegitimateDataRightsExcept Method |
Removes all rights from an object
Namespace:
PsrApi.Managers
Assembly:
PsrApi (in PsrApi.dll) Version: 9.3.1.33994 (05.02.2026)+877276ecd19b420b1689117d76424351f3a6cb2b
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