Skip to main content
Known Participant
Sep 14, 2023 7:20 PM UTC
Question

Adding user to specific group process model

Hi All,

What is the best way to add a user just created with the Create User Smart Service to a specific group in my application, is there a specific smart service I can use for this in my process model?

thanks in advance

4 replies

mikes0011
Brainy
Sep 14, 2023 7:32 PM UTC

Generally speaking the "Add Group Members" smart service should be sufficient - are you having any particular trouble?

The Expression Guru
Known Participant
Sep 14, 2023 8:06 PM UTC

Yes, I'm trying to configure the user to be added but without selecting it manually. right now my process model creates the user in the system and then I want to add it to the group, but it only works if I manually select the user in the Add group members node.

shikhat
Inspiring
Sep 15, 2023 9:39 AM UTC

Hi, create the user using create user service , save the new user created in a process variable (output variable), pass that pv(user type) in the input of Add Group node.
Pass the group name as constant/select the group. That is the standard process.

Anything else that you wish to perform here ?