Is there a way to set an Attribute Statement for a Templated WS Federation app (‘signOnMode’ = ‘WS_FEDERATION’) using the API?
01 - Tried the answer in SAML app- Is there API to update attribute statement - The app gets created without error, but there are no attributes when I look in the portal.
{
"name": "template_wsfed",
"label": "Test App",
"signOnMode": "WS_FEDERATION",
"settings": {
"app": {
[...]
},
"signOn": {
"attributeStatements": [
{
"name": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name",
"values": [
"user.id"
],
"namespace": "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified",
"type": "GENERIC"
}
]
}
}
}
02 - Tried manually creating an attribute in the portal then doing an Apps API GET
- The response contains the app, with no sign of the attribute in the response body.
03 - There’s a settings.app.attributeStatements = null
in the response body - tried to POST
a new app with the attribute in there, and got "errorSummary": "Type mismatch exception. ",
{
"name": "template_wsfed",
"label": "Test App",
"signOnMode": "WS_FEDERATION",
"settings": {
"app": {
"attributeStatements": [
{
"name": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name",
"values": [
"user.id"
],
"namespace": "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified",
"type": "GENERIC"
}
],
[...]
}
}
}
[04 to ∞] - Been reading forum posts, developer docs, API specs and examples, tried ChatGPT. Tried dozens of formats of post body. Can’t figure out what’s missing here. How can these be managed via API?