function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Brandon H. BarrBrandon H. Barr 

SAML Subject of 'Custom Attribute' is seems to be unselectable.

Can anyone else confirm they are seeing this behavior? I need to set a custom attribute in the subject and this is not currently possible. I have provided steps to reproduce my error. I have tested this in both a production enterprise org and a DE org.

Steps to reproduce:
In classic:
1) Navigate to Build > Create > Apps
2) Create new connected app
3) Provide Name, API Name and email
4) Check 'Enable SAML'
5) Provide a valid URL for Entity ID and ACS URL
6) Click save and reopen this new app.
7) Add a custom attribute to the connected app by click new in the custom attribute section. Provide a key and a value. click save.
8) Click edit on the connected app and change subject type to custom attribute. Any empty select box should appear and the app is now unsavable in this state.

User-added image

Once i hit this dead end, i attempted to create a connected app using the salesforce cli. I recieved the following error:
Error parsing file: 'CustomAttr' is not a valid value for the enum 'SamlSubjectType' (14:54)


The enum of `CustomAttr` is defined in the mdapi documentation found here (https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_connectedapp.htm).

In my research, i found that I am not the only person to experience this issue. This stack exchange (https://salesforce.stackexchange.com/questions/216938/connected-app-how-to-select-a-custom-attribute-for-saml-service-provider-settin) post dates to may of '18