RightManagerRemoveAllLegitimateDataRightsExcept Method |
Removes all rights from an object
Namespace:
PsrApi.Managers
Assembly:
PsrApi (in PsrApi.dll) Version: 9.2.6.33415 (22.09.2025)+55d4baaf8f17ebe942fa8931c5994288899c2371
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