Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
How do I check which group does the user belong to? (via api)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2023 01:39 PM
2533     0
How do I check which group does the user belong to? (via api)
Solved! Go to Solution.
Re: How do I check which group does the user belong to? (via api)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 11:00 AM
2533     0
Use the "userprofile" object and request the "admin_group" field.
For example:
curl -k -u admin:infoblox -X GET 'https://gm.richard.network/wapi/v2.11/userprofile?_return_fields=name,admin_group,email,user_type'
returns:
[ { "_ref": "userprofile/Li51c2VyX3Byb2ZpbGUkMA:admin", "admin_group": "admin-group", "name": "admin", "user_type": "LOCAL" } ]
Re: How do I check which group does the user belong to? (via api)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 11:11 AM
2533     0
Why I have to write the password?
Re: How do I check which group does the user belong to? (via api)
[ Edited ]Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 12:34 PM - edited 07-05-2023 12:34 PM
2533     0
You only need to fill the "old_password" and "password" fields if you're changing your own password. It's not needed to view information.