Hello,
I'm trying to get the "user.jobtitle" attribute into a SAML claim that AWS can consume, however that does not seem to be possible with Azure AD. Ideally I would have wanted to use the AWS parameter "saml:organizationStatus", which AWS
maps from the "0.9.2342.19200300.100.1.45" X.500 claim (see https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml_assertions.html )
The following is the format that AWS expects, according to AWS support:
<saml:Attribute Name="0.9.2342.19200300.100.1.45" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> <saml:AttributeValue xsi:type="xs:string">NUcTzbkzle7i3vfM9iRDpJ1N4jznNKsWaPO8bU8MWY4=</saml:AttributeValue></saml:Attribute>
However generating anything looking like that is impossible with the rather limited "Manage claim" functionality in the Azure AD portal.
Does anyone know if there is a way of getting around this, or am I scuppered here...?
Thanks in advance!
For reference, below is the communication from AWS in case it can be useful to anyone:
please note that some condition keys are only supported in the role's trust policy, including saml:organizationStatus[] [1]. We have a few SAML-related condition keys that are supported in role permissions policies [2], including the following:
saml:namequalifier
saml:sub
I think the SAML attribute name in the assertion should be the same as the table entry in this doc [3], so I'd expect the following SAML attribute to map to saml:organizationStatus[]:
<saml:Attribute Name="0.9.2342.19200300.100.1.45" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> <saml:AttributeValue xsi:type="xs:string">NUcTzbkzle7i3vfM9iRDpJ1N4jznNKsWaPO8bU8MWY4=</saml:AttributeValue></saml:Attribute>
The condition key saml:organizationStatus[] also seems to expect an array value like the following:
"StringLike": {
"saml:organizationStatus": [
"NUcTzbkzle7i3vfM9iRDpJ1N4jznNKsWaPO8bU8MWY4="
]
}
Please let me know if you have any issues with this, and I can do some further testing in my account to investigate further. Please also include the role name that you're testing with.
<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} </style>