
rich.steenwyk (Community Member) asked a question.
It appears that there is no support for retrieving 'custom_fields' attached to user records via the newer REST Identity API. The original XML API provided this functionality via the getuserinfo.do endpoint.
Is support for custom_fields on the roadmap for support in the REST Identity API?
Since it isn't, I've resorted to using the XML API, but am receiving a 200 OK "Access Denied" when trying to look up a SAML user using the 'custom_id' query parameter.
I was met with the same result on attempts to access a SAML user using credentials from both a human-user account with the Administrator role and from an API account with the Admin API role. The same credentials are able to load any other non-SAML user account in the system using the 'username' query parameter.
Works: http --auth-type=veracode_hmac --verify my.crt --debug --json GET "https://analysiscenter.veracode.com/api/3.0/getuserinfo.do" "username==<username>"
Fails: http --auth-type=veracode_hmac --verify my.crt --debug --json GET "https://analysiscenter.veracode.com/api/3.0/getuserinfo.do" "custom_id==<saml_subject>"
.png)
Hi @rich.steenwyk (Community Member) -- just confirming what @Jason M., Veracode Support (Veracode) posted--you should definitely see values for custom_one, custom_two, etc. IF those fields are populated. They are omitted from the response if they are not populated. You should be able to set them as well, either at the time of creating the user or via an update. Hope this helps.