Click or drag to resize

RightManagerRemoveAllLegitimateDataRightsExcept Method

Removes all rights from an object

Namespace:  PsrApi.Managers
Assembly:  PsrApi (in PsrApi.dll) Version: 9.2.2.32703 (27.03.2025)+b9af25405a8dc67f2b73227b442cec4f08fd2d8a
Syntax
C#
public 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: TaskNullableGuid
The id of the not deleted right from the current user or users role
See Also