PublicAPI.Docflow.Permissions.AddFullAccessPermission ELMA API Documentation
Grant the user full access permissions to the docflow object
 
 
Syntax

public void AddFullAccessPermission(
	DmsObject dmsObject,
	User user
)

Parameters

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

//load the folder by ID 
var myFolder = PublicAPI.Docflow.Folder.Load(3);
//load the user by ID 
var user = PublicAPI.Portal.Security.User.Load(3);

//add permissions
PublicAPI.Docflow.Permissions.AddFullAccessPermission(myFolder, user);

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