<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
System Status
Announcements
Announcements
Search
Search
Select Language
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
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply