<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D5KZ00000cBNgs0AGOkta Identity EngineWorkflowsAnswered2026-04-29T09:00:25.000Z2025-03-27T15:52:54.000Z2025-03-28T21:33:14.000Z

8eb02 (8eb02) asked a question.

Okta Workflow - Group List to comma seperated string of group names

I want to fetch the Group Names of a User in comma separated string.

I have used the "Get Users Groups" card but then don't know how to convert that output into comma separated string.

For example I have below output from the "Get Users Groups" card (Groups that are assigned to a User).

 

Image is not available

 

And I need the "Profile.Name" path value to be comma separated like "Everyone,Test Group1,Test Group2". So how can I achieve this.


  • @8eb02 (8eb02)​ .. pass your output to - "For each" card to parse the list of groups returned (your screen above) and call a "helper function" and pass each group object at a time and follow that with a "Get card" to filter profile.name for each group and you can write to a db/create your csv

     

    HTH

    -Bala

    Expand Post
  • 8eb02 (8eb02)

    @User1646066528187443648 (Okta)​ can you suggest any other approach without writing to a db/create csv because I have to pass these comma separated groups name to the another workflow card, there is no need to store these values in any of the file.

  • TimL.58332 (Workflows)

    @8eb02 (8eb02)​  - Here is how:

     

    Make sure the "Pluck" output is a list of text

     

    For the separator it can be what ever you want. The example here is comma space so without params (, )

     

    image 

    Resulted in:

     

    Everyone, Australia, group1, OktaGroupA, isTestGroup, testQueueGroup, queue_group, rateLimitTest, exclude1, specificWorkspaceGroup, test0365, testGroupAdd, drainGroup, ruleTestGroup, campaignEveryone, slackGroup2, privledgedUsers, allUsers, everyoneTest, MFA for Everyone

    Expand Post
This question is closed.
Loading
Okta Workflow - Group List to comma seperated string of group names