<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
0D54z0000A8ycLbCQIOkta Identity EngineWorkflowsAnswered2024-06-07T07:21:22.000Z2024-05-28T11:52:47.000Z2024-06-07T07:21:22.000Z

StevenY.58531 (Customer) asked a question.

Stream Group Membership - Plucking Username Keeps Returning Null in Workflow

Hi Everyone,

 

I have a group filled with users, and have a basic workflow which streams the membership records of the group to a subflow. The sub flow just pulls those records, flatten's the list, but the pluck is where it is failing to continue. I can see the streamed records is providing the correct values over for the users. I am attempting to pluck the login name from the list but it's always returned as {null} and I'm not sure why.

 

I have tried the key for plucking as "Login" "login" "Profile.Login" "profile.login" etc but it always comes back Null. What am I missing to properly pluck this value from the streamed records?

 

I saw a similar thread here https://support.okta.com/help/s/question/0D54z00008U6tRXCAZ/list-pluck-returning-null-values-manage-okta-group-membership-based-on-profile-attributes-template?language=en_US but using Profile.Login does not appear to be the ticket. Any ideas are welcome.


  • SarahS.89561 (Customer)

    Hi Steven

     

    When streaming records I set the helper flow up as per below, The "Record" is an object and then the ID and Login are set to text

     

    image 

     

    Expand Post
  • StevenY.58531 (Customer)

    Oh, I didn't realize I could have it pass over attributes like that, I was converting it to a flat list and trying to pluck the attribute, but it comes across as an object? That makes more sense then why it's behaving this way, the pluck would always return null if it's an object. Is there anything special you had to do to set those as text?

     

    Expand Post
  • SarahS.89561 (Customer)

    Hi Steven

     

    If you set the object, then add the ID and Login underneath I'm pretty sure the default type is text and you would need to change it if you wanted anything else, eg. True/False

  • StevenY.58531 (Customer)

    Hmm, I'm trying this and but I still just get NULL when trying to pull the Username or UserID. All I'm doing is a scheduled workflow which then streams the records to a subflow. I have the top of the helper set to an object, and ID/Login set to text. I can see it pass the correct values over but reading from it via a list to pluck the values or do anything with them just gives me a null value. I'm not sure what I'm missing here. If I don't stream it, I can pluck the ID/Username from the text without issue. Screenshot 2024-06-06 083011Step1

    Expand Post
  • StevenY.58531 (Customer)

    Ok I set up a helper flow exactly like your screenshot just to see if it would write the values to the table, ANY VALUES, and it does not. I think there is a problem with my environment not functioning properly. I also noticed CloudFront errors when modifying a scheduled task workflow. I'm going to have to contact their support as clearly something is not working right.

  • SarahS.89561 (Customer)

    @StevenY.58531 (Customer)​ Looking at your screenshots I think the issue might be the List - For Each card in your helper flow. The flow that contains the List Group Members streams the members to the helper flow one member at a time, so, if you had 10 member in a group and then ran the flow, the calling flow would show one execution and the helper flow would show 10, one for each member. Basically the helper flow should take the members one at a time and perform some action on them

     

    Example below

    Calling flow for get users groups and then stream to a helper flow

    imageHelper flow that deals one at a time with the users groups

    image 

    Hope that helps

     

     

     

    Expand Post
This question is closed.
Loading
Stream Group Membership - Plucking Username Keeps Returning Null in Workflow