public void AddManageAccessPermission( DmsObject dmsObject, User user )
Grant the user admin permissions to the docflow object
Syntax
public void AddManageAccessPermission( 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.AddManageAccessPermission(myFolder, user); //WARNING!! If the user already has these permissions, the function will not add anything
See Also