Map participant to anonymous (logged out) users

Confluence User - 09 Apr, 2018

Hi team,

I am trying to build a workflow where some steps in between are carried out by "public" users (ie users without a login). More specifically, how can I start a process as a logged-in user and then map a participant swimlane to "roleAnonymous" or "everybody" for activities within a particular swimlane. 

It seems like this should be possible since assignments can be viewed publicly if a process was started by a user who wasn't logged in. However in the participant mapping of other activities (apart from the start activity), the "role" tab is not available.

Any tips how the beanshell tool or variable update tool could be used to do that?

Cheers!

process;user;participant;assignments

3


09 Apr, 2018
confluenceUser
1
confluenceUser

Use beanshell and try

Collection assignees = new ArrayList();
assignees.add("anonymousUser");
return assignees;
10 Apr, 2018
confluenceUser
confluenceUser

That works like a charm - “roleAnonymous” seems to work as well. Thanks for your help!

03 Oct, 2024
confluenceUser
confluenceUser

Sharing the updated code snippet as the above did not work.


import java.util.ArrayList;

ArrayList users = new ArrayList();
users.add("roleAnonymous");

return users;

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print