<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
0D54z00009qZKn5CAGOkta Identity EngineWorkflowsAnswered2023-12-12T22:01:13.000Z2023-12-11T21:12:47.000Z2023-12-12T22:01:13.000Z

JosephM.46079 (Customer) asked a question.

Set Specific Profile Attribute to Specific Users - List Users with Search Help

I apologize if this has been answered but I could use some assistance in a workflow. I need to set a specific value on a profile attribute to true for all new users moving forward with a specific domain name.

 

I have the flow working with the "list group members" and by setting adding people to this group but its not really optimized.

 

I see the "list users with search" function. Is it possible to filter the inputs to creation dates after today and to users like "@domainname.com" ?

 

I don't want to just blanket add all of the @domainname.com accounts to the group since there are a few service accounts we don't want to set this attribute for. I'm sure this is easier than I'm making it out to be so I greatly appreciate any responses.


nbd0s likes this.
  • TimL.58332 (Workflows)

    @JosephM.46079 (Customer)​ 

     

    Looking at the "Users" api you can see the following top level attributes are supported:

     

    https://developer.okta.com/docs/reference/api/users/#list-users-with-search

     

    • The top-level properties id, status, created, activated, statusChanged, and lastUpdated

     

    The date format leveraged by Okta is generally ISO 8601 (There are some instances where it is Epoch but not here).

     

    What this means is you can build out a custom search to return users based on the built-in "created" attribute. So for example this will find all users created between the start of today UTC and when the flow ran:

     

    imageimage 

    Note: The "List Users with Search" is returning the first 200 results just for display purposes. You would likely want to set it to Streaming instead. See the following article for a demo on how to use streaming: https://support.okta.com/help/s/article/How-to-use-Streaming-Action-cards-in-Okta-Workflows?language=en_US

     

    Expand Post
    Selected as Best
  • JosephM.46079 (Customer)

    I did see this document when googling but it didn't really make sense to me since I haven't worked with APIs before. It seems others have marked this answer as best though so I guess that's the answer.

This question is closed.
Loading
Set Specific Profile Attribute to Specific Users - List Users with Search Help