Click or drag to resize
BCRepositoryGetUserPrivileges Method (String, String, Boolean)
Returns all privileges for the specified user on the specified enclosure.

Namespace: BlueCieloECM.InnoCielo.Meridian.Server
Assembly: BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 4.0.0.0 (4.0.19.0)
Syntax
public BCTableView GetUserPrivileges(
	string userName,
	string enclosureID,
	bool includeDocType
)

Parameters

userName
Type: SystemString
The name of the user. If or an empty string, the current user is used.
enclosureID
Type: SystemString
The ID property value of an enclosure to get privileges from. If the specified object is not an enclosure, the server will find an active enclosure for it, taking into account the current context.
includeDocType
Type: SystemBoolean
A value indicating whether to include document types privileges.

Return Value

Type: BCTableView
All privileges for the specified user on the specified enclosure.
Remarks

The function will return a tableview (variant grid) of all privileges that are available for the specified user.

The tableview will contain a number of columns equal to the number of privilege categories plus one. First column in the tableview will contain the ID property value of the object to which these privileges are applied (for object-specific privileges) and for class-wide privileges. Other columns will contain a privileges bit mask for each privilege category.

If includeDocType is , the tableview will include a row for each document type. First column will contain ID property value of the document type and only the document type category column will be filled (the other ones will contain ).

See Also