<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
0D51Y00006RX6yXSATOkta Classic EngineSingle Sign-OnAnswered2024-04-15T09:36:15.000Z2019-07-15T20:56:27.000Z2019-09-12T17:04:24.000Z

ErikT.66719 (Customer) asked a question.

Group Attribute Statement Regex Filter

I have an application that requires a group attribute statement, where the filter needs to limit the results to a set of groups that use a particular prefix, plus one individual group without the prefix. e.g.

PrefixedGroupA

PrefixedGroupB

PrefixedGroupC

SomeOtherGroup

 

Using a "starts with" filter, I can catch the first three, so I know at least the groups are available and working in that regard.

 

To get the extra group included I tried with a Regex filter:

^(PrefixedGroup|SomeOtherGroup)

 

My expectation was that this should match any group that starts with either PrefixedGroup or SomeOtherGroup; however the result is that no groups are sent.

 

I also tried without the start of string/line anchor in case that was an issue, e.g.

(PrefixGroup|SomeOtherGroup)

but again, no groups are sent when using this.

 

Am I missing something in the way regex needs to be formed to match groups?

Thanks!


  • Alex here with Okta's Support Team,

    If you want to send all the groups that the user is assigned to then you will need to use the regex .*

    However if you want to send just certain groups then you can use the following as an example .*groupA.*|.*groupB.*|.*groupC.*|.*groupD.* and this will send the groups A,B,C and D.

     

     

     

    Expand Post
    Selected as Best
  • Alex here with Okta's Support Team,

    If you want to send all the groups that the user is assigned to then you will need to use the regex .*

    However if you want to send just certain groups then you can use the following as an example .*groupA.*|.*groupB.*|.*groupC.*|.*groupD.* and this will send the groups A,B,C and D.

     

     

     

    Expand Post
    Selected as Best
  • jwiet (jwiet)

    Hi Alex,

     

    Could you please explain what is groupA here in your example?

  • jwiet (jwiet)

    Hi Alex,

     

    I have 2 category of groups: like "IT-%" and the other "CS-%". Could you please help me how I can get all the groups which starts with either "IT-" or "CS-" using regex?

     

    Thanks

    Shashikant

    Expand Post
This question is closed.
Loading
Group Attribute Statement Regex Filter