
GregK.81115 (Customer) asked a question.
I'm attempting to create a workflow that does the following
- Upon User Creation
- Retrieve a Custom Profile Attribute (e.g. "myAttribute") for the created user
- Use the "myAttribute" value as input to the next workflow step.
I can't find a way to access Custom Profile Attributes in the various Okta workflow actions. The User Created action does not seem to include the user's profile in the User Object returned.
The Read User action only allows me to select from System Properties and Default Profile Properties, even though the documentation for the Read User action lists "Custom Profile Attributes" as items that can be configured on the card.
How can I access custom profile attributes for a user in my workflow?

So when you have created a non-default User Type (Directory > Profile Editor > + Create Okta User Type) it will allow you to create a new subset of users attached to the specific user type. When that user is created it is going to generate a uniqueID for the user just like it will for the default
Example: https://myDomain-admin.okta.com/admin/user/profile/view/00u4wxx3oD0AAAn5d7
This user can be read via the user's API endpoint the same way as users in the default. The problem you are running into is the built-in Read card performs a dynamic enumeration of the "Default" User Type attributes only. It is not designed to work with non-default user types. Unfortunately, this is also going to be true for the "Update" type cards also (Basically any of the built-in cards that dynamically list the properties are only going to work with the Default User Type).
To work-around this utilize the "Custom API Action" option. The "relative URL" would be the following taken from my example above:
/api/v1/users/00u4wxx3oD0AAAn5d7
This will return all of the user's properties. You can then pull out the attributes you want utilizing an Object Get (or Get Multiple).
To update the properties you will want to reference the API documentation and will have to do some build-out yourself.
https://developer.okta.com/docs/reference/api/users/#update-user
(Note: You are likely going to want to utilize POST which is partial instead of PUT which is strict, make sure to read the differences).