Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(jans-config-api): User endpoint to expose custom attributes at root level #1348

Closed
pujavs opened this issue May 17, 2022 · 2 comments
Closed
Assignees
Labels
comp-jans-config-api Component affected by issue or PR kind-feature Issue or PR is a new feature request

Comments

@pujavs
Copy link
Contributor

pujavs commented May 17, 2022

Requirement: Currently the fields mail, displayName, jansStatus, userPassword, givenName in customAttributes array.
These need to be made available directly in json as this will be helpful for UI developers as these fields will be mandatory on UI.

example

{ "dn": "inum=203008f1-dc3e-41ee-a546-d7a2aa45f6ab,ou=people,o=jans", "userId": "admin5", "mail": "admin4@jans-ui.jans.io", "displayName": "Default Admin User", "jansStatus": "active", "userPassword": "secret123", "givenName" :"Admin", "createdAt": "2022-05-14T16:35:27", "baseDn": "inum=c8791801-4372-42b9-a53f-0990b79f62c4,ou=people,o=jans", "customAttributes": [{...}] }

@pujavs pujavs added the comp-jans-config-api Component affected by issue or PR label May 17, 2022
@pujavs pujavs self-assigned this May 17, 2022
@mo-auto mo-auto added the kind-feature Issue or PR is a new feature request label May 17, 2022
@pujavs
Copy link
Contributor Author

pujavs commented May 18, 2022

Code merged in main 1351

@pujavs pujavs closed this as completed May 18, 2022
@pujavs
Copy link
Contributor Author

pujavs commented May 31, 2022

New Requirement:
For ease in handling api response at UI side can we please have inum directly in json object of response (not inside customAttributes array)

for example:

{
"dn": "inum=265e952a-60b5-4e2b-acf7-b0b2412bbb3f,ou=people,o=jans",
"userId": "admin",
"customAttributes": [{...},..],
"customObjectClasses": ["top", "jansCustomPerson"],
"mail": "admin@admin-ui-test.gluu.org",
"displayName": "Default Admin User",
"jansStatus": "active",
"givenName": "Admin",
"baseDn": "inum=265e952a-60b5-4e2b-acf7-b0b2412bbb3f,ou=people,o=jans",
"inum": "265e952a-60b5-4e2b-acf7-b0b2412bbb3f"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-config-api Component affected by issue or PR kind-feature Issue or PR is a new feature request
Projects
None yet
Development

No branches or pull requests

2 participants