I am working on running a filter on a Claims called Groups. I am working on an Enterprice Application in the sign-on section. Once I go into the 2 Attributes & Claims section I select the correct claim and had applied a regex <GroupName>[A-Za-z-]*-(<Final1>|<Final2>)$ obviously the one in brackets <> are fictitious for the purpose of the regex. The problem is that I am forced to put something Regex replacement pattern. Since I want all groups to be found by the regex how do I not do any replace. Sorry if this question is probably stupid, but this is the first time I've come up against this.
To make it easier I would like for a user who has 10 roles "found by regex" to pass all others are not displayed. e.g.
Regex: Pluto[A-Za-z-]*-(Admin|Operator|Pincopallino)$
Groups:
- Pluto-PROD-Admin,
- Pluto-PROD-Operator
- Pluto-PROD-Pincopallino
- Goofy-Admin
- Goofy-Operator
After regex only the Pluto-Admin, Pluto-Operator, Pluto-Pincopallino return to me in the SAML2 response
Depending on the software, you may be able to use
&or$0as your replacement pattern to "replace" with the match itself.