I leave a question related to custom claims between ADFS-AWS
This Custom claim rule is working:
RuleName = "Redshift Apps"
c:[Type == "http://temp/variable", Value =~ "(?i)^GlobalURAWS([^D]{12})RedshiftdbgApp1_IMDL"]
=> issue(Type = "https://aws.amazon.com/SAML/Attributes/DBGroups", Value = RegExReplace(c.Value, "GlobalURAWS([^d]{12})RedshiftdbgApp1_IMDL", "arn:aws:iam::$1:saml-provider/argSTSQA,arn:aws:iam::$1:DBGroups/App1"));
The code reads and get a group like this: GlobalURAWS456088166704RedshiftdbgApp1_IMDL
I want to modify the code in order to read another variable and assign it to the correct DBGROUP :
For example I have n groups like these:
"GlobalURAWS456088166704RedshiftdbgApp1_IMDL"
"GlobalURAWS0160881664444RedshiftdbgApp2_IMDL"
"GlobalURAWS7360111652314RedshiftdbgApp3_IMDL" ..
(GlobalURAWS0160881664444RedshiftdbgApp#_IMDL")
and assign to the specific --> ::$1:DBGroups/App#"));
Thanks a lot