Forum Discussion

dhiman_das's avatar
dhiman_das
New Member
3 months ago

User management API does not return firstname & lastname

Hello team, I am currently utilizing the SwaggerHub User Management API endpoint (/orgs/{orgId}/members). However, I am encountering an issue while retrieving users – specifically, the API response does not include the firstName and lastName fields. Please find the below curl command

curl --location 'https://api.swaggerhub.com/user-management/v1/orgs/VORELAK507/members?page=0&pageSize=100' \
--header 'Authorization: Bearer <MASKED>'

Response is

 Additionally, when creating a user and providing the firstName and lastName in the input body, the changes are not being reflected in the UI. Your assistance in resolving this matter would be greatly appreciated.

curl --location 'https://api.swaggerhub.com/user-management/v1/orgs/VORELAK507/members?page=0&pageSize=100' \
--header 'Authorization: Bearer <Masked> \
--header 'Content-Type: application/json' \
--data-raw '{
    "members": [
        {
            "email": "jack@example.com",
            "firstName": "Jack",
            "lastName": "White",
            "role": "DESIGNER"
        }
    ]
}'