Open this page in the API Guide

IFileSystemService.SetPrivileges Method (Guid, ICollection<PrivilegeAssignment>, PrivilegeInheritanceBehavior, PrivilegePropagationBehavior)

Set an entry's access privileges.

Namespace:  Dundas.BI.FileSystem
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
void SetPrivileges(
	Guid entryId,
	ICollection<PrivilegeAssignment>? privilegeAssignments,
	PrivilegeInheritanceBehavior inheritanceBehavior,
	PrivilegePropagationBehavior propagationBehavior
)

Parameters

entryId
Type: System.Guid
ID of the entry.
privilegeAssignments
Type: System.Collections.Generic.ICollection<PrivilegeAssignment>
The collection assignment to apply, or null if no there should be no explicit assignments.
inheritanceBehavior
Type: Dundas.BI.FileSystem.PrivilegeInheritanceBehavior
Indicate whether to inherit parent's privilege assignments.
propagationBehavior
Type: Dundas.BI.FileSystem.PrivilegePropagationBehavior
Indicate how parent's privilege assignments should be propagated to children.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionpropagationBehavior is not one of the PrivilegePropagationBehavior values.
ArgumentExceptionentryId is Empty.
InvalidOperationExceptionprivilegeAssignments contains assignments for privileges which are not object privileges.
NotFoundExceptionThe entry specified by entryId does not exist.
NoPrivilegeException The caller does not have the FullControl privilege on the specified entry.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also