
ErikT.66719 (Customer) asked a question.
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.