cancel
Showing results for 
Search instead for 
Did you mean: 

get username

adhi27
Champ in-the-making
Champ in-the-making
can i get username in button assignee for setpermissions folder?

sorry my english so bad
6 REPLIES 6

mitpatoliya
Star Collaborator
Star Collaborator
Please give some more details

adhi27
Champ in-the-making
Champ in-the-making


so when i click button assignee and select a user and task done automaticlally creates a folder and workflow set permissions by user in the select

can workflow do it and if can how to do it?

sorry bad english

adhi27
Champ in-the-making
Champ in-the-making
so when i click button assignee and select a user and task done automaticlally creates a folder and workflow set permissions by user in the select

can workflow do it and if can how to do it?


sorry bad english

darkredd
Star Contributor
Star Contributor
Hi,

Yes setting permission in a workflow is very possible. Assuming that folder created by the same user that will assign those permissions.
You can try the following in your script (which can be found on the Alfresco Docs site):

folder.setPermission("username", authority);

authority means the type of permission you want for that user, which can be either of the following:
1. SiteManager or Manager
2. SiteCollaborator or Collaborator
3. SiteContributor or Contributor
4. SiteConsumer or Consumer
5. Editor.

adhi27
Champ in-the-making
Champ in-the-making
how about get username in button workflow?

sorry my english so bad

adhi27
Champ in-the-making
Champ in-the-making
my problem is done
thx all Smiley Happy