REST API User - LocalName versus Label in Profile Fields

Former Member
Former Member

When creating custom profile fields in the Admin console, you specify a Key and a Label.

...

When you get a user via the REST API, it seems like the Label is the same value as the Key (LocalName).  Is that intentional? (in the screencap below, FirstName and LastName are custom).

Parents Reply Children
  • To clarify, this is being closed because it is working correctly but the old platform-defined fields don't conform to the requirements of REST serialization and are handled as a special case to support backwards compatibility.

    Fields are identified using their key/localname programmatically, but, when serialized for XML, spaces are invalid. As you noted, spaces are not allowed when defining new profile fields, however, the platform-defined fields predate XML serialization and included spaces.

    In the future, when a new version profile fields support/API is defined, this issue will be addressed, however, it is working for now to preserve backwards compatibility and prevent new issues.