RightManager.RemoveAllLegitimateDataRightsExcept 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: System.Guid
DataId of the object whose rights should be deleted - excludedLegitimateIds
- Type: System.Collections.Generic.List<Guid>
List of legitimates whose rights should not be deleted - excludeCurrentUserOrRoleRight
- Type: System.Boolean
Should at least one right for the current user stay in the database
Return Value
Type:
Task<Nullable<Guid>>The id of the not deleted right from the current user or users role
See Also