I am using /Users endpoint to pull all users while I don’t get roles assigned to each user.
I have to make /Users/{userId} call to get role name.
Is there any way to get role name with /Users endpoint
Also I am creating user via /Users endpoint but don’t find any option where I can mention that this user should be under which sub account.
Does this mean whenever I create user using /Users API with Master account details it will always create user under master account ?
The user will be in the Sub Account of the authentication method used. So if Sub Account A JWT or OAuth access_token creates a user, the user will be in Sub Account A.