PublicAPI.Docflow.Permissions.AddManageAccessPermission ELMA API Documentation
Grant the organization item admin permissions to the docflow object
 
 
Syntax

public void AddManageAccessPermission(
	DmsObject dmsObject,
	OrganizationItem orgItem
)

Parameters

dmsObject
Type: DmsObject
Docflow object, whose permissions need to be added. Object. Access path: PublicAPI.Docflow.Objects.DmsObject
orgItem
Type: OrganizationItem
Organization item, the permissions need to be granted to. Object. Access path: PublicAPI.Portal.Security.OrganizationItem
Examples

//load the folder by ID 
var myFolder = PublicAPI.Docflow.Folder.Load(3);
//load an organization item by ID 
var orgItem = PublicAPI.Portal.Security.OrganizationItem.Load(3);

//add permissions
PublicAPI.Docflow.Permissions.AddManageAccessPermission(myFolder, orgItem);

//WARNING!! If the organization item already has these permissions, the function will not add anything
See Also