Custom attribute does not work until it is added to "User (default)"

In the profile editor, I selected “Profile” of an application (Not “User (Default)”), added a custom attribute.

I tried to call the following api:

POST: {{url}}/api/v1/users/{{userid}}

Header: SSWS {{apikey}}

And in the body: {Profile : { “custom_att”: “value” }}

It did not work until I added the custom attribute to “User (default)”

Can any body help ?

When adding a custom attribute to an application profile, that attribute will not show up in the users profile,
It does show up is the users application profile for that application (if they are assigned it), {{url}}/api/v1/apps/{{appId}}/users/{{userId}}

So if a user is assigned to app1 and app2, for each of those apps they will have an associated app profile which would contain any custom attributes specific to that application.

More info can be found here.

You mean when calling the post action to update user data, I have to include appid like the following call ?

That’s right @bfakhriloo. You should be doing a POST to {{url}}/api/v1/apps/{{appid}}/users/{{userid}}.