<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
0D54z00007FfYoTCAVOkta Classic EngineSingle Sign-OnAnswered2024-04-16T13:09:42.000Z2021-10-25T16:59:30.000Z2021-10-27T04:48:09.000Z

3ij45 (3ij45) asked a question.

Removing Prefix of Group Attribute

Hello all, I have a SAML app where Okta is the IdP and users will belong to only one of three groups:

group_1

group_2

group_3

 

The SP needs to receive only the numerical value at the end. For example, if a user belongs to group_2, then only the "2" would be sent in the SAMLResponse.

 

There's a string function that would accomplish that ( String.substringAfter("group_1", "_") ) but, this doesn't work even after flattening it and would be arduous if more groups were created following that naming convention as we would have to manually add the groups as the numerical suffix increased.

 

Is there a way to achieve this?

What about RegEx? As in it both searches by the RegEx value and after searching it does a RegExReplace?


This question is closed.
Loading
Removing Prefix of Group Attribute