<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
0D51Y00007WzCQrSANOkta Classic EngineUniversal DirectoryAnswered2026-04-01T09:00:20.000Z2020-01-10T15:52:24.000Z2020-02-03T23:29:28.000Z

ulazx (ulazx) asked a question.

Expression to pull from attribute that has multiple values to populate Okta group

I am trying to build an expression that pulls from an attribute that could have different values depending on a users department and then add the user to an Okta group.

 

For example:

attribute: costcenter

values could be: 0001234 IT - Admin, 0005678 IT - User, 0009876 IT - RemoteUser

 

I would like the xpression to look at the costcenter values and read at minimum the number from each value and then put that user into an Okta group.

 

i had something like String.startsWith(user.costcenter,"xxxxxxx) and where the X's are is what I am missing but I might be totally wrong with the entire expression already.


This question is closed.
Loading
Expression to pull from attribute that has multiple values to populate Okta group