In this we are going to find the difference b/w role ,group and manager role/group. And also we will understand how to retrieve user details details from System API.
Assume that we have 2 groups in process admin console
1.DEV_GRP --> user1,user2
2.MANAGER_GRP --> mgr1,mgr2
Assume that we have 2 groups in process admin console
1.DEV_GRP --> user1,user2
2.MANAGER_GRP --> mgr1,mgr2
- How to find role of current logged in user tw.system.org.findUserByName(tw.system.userLogin_Name).roles --> it will give DEV.GRP for User1 & MANAGER.GRP for mgr1
- How to find Manager role of current logged in user tw.system.org.findUserByName(tw.local.currentUser).roles[0].teamManagerRole.roles --> it will give MANAGER.GRP for mgr1
- How to find group of current logged in user tw.system.org.findUserByName(tw.local.currentUser).participantGroups it will give DEV.Team for User1 & MANAGER.Team for mgr1.
- How to find all users in a team tw.system.org.findTeamByName("DEV.Team").allUsers
No comments:
Post a Comment