Add groups and dn to User Pojo
victorhua opened this issue · 5 comments
Checklist
- I have looked into the Readme and Examples, and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Describe the problem you'd like to have solved
We are calling GET api/v2/users endpoint to get user information.
It seems User doesn't have groups and dn properties.
Describe the ideal solution
Please add them.
Alternatives and current workarounds
No response
Additional context
No response
👋 hi @victorhua, thanks for raising! Can you provide an example of these properties as returned by the API? I don't see a group
or dn
property when I make a request to list users. Thanks!
I think these fields are only available when the connection is a SAML, it may also depend on the SAML configuration.
example:
{
...
"Groups": [
“Dev”,
“Admin”
],
"dn": "CN=TEST,OU=Testing,OU=HQ,OU=Users,OU=Test_HQ,OU=Testing,DC=US,DC=test”,
...
}
Is it possible to pass in a customized POJO class in this case?
Hi @victorhua, thanks for the info! We'll see if there's a nice way we can support this.
Ah, this has come up before and was addressed in #56. You can use the getValues()
method on the User
to get a map of values, which in this case would contain the groups
array and dn
value. Let me know if that works for you, thanks!
Closing as this info can be retrieved via the getValues()
method discussed above.