Hi everyone,
How do I get a list of all group and their members in specific directory in crowd? I just want to see a display name of user/group. Also a user status, I want to get only users are activating.
For example
I reading Crowd REST API document, but it not mention about Crowd directory, any idea?
Thanks.
Hello @tiendungitd
The Crowd REST API is built to be accessed by Applications and thus you can fetch details of users which are part of application-directory mapping i.e. your application must be mapped to the directory whose users you want to fetch. You can also create a dummy application for this purpose.
From the docs
This set of REST APIs is intended to be used by applications connecting to Crowd.
I'm using the command below to fetch user membership
curl -u user:pass http://localhost:8095/crowd/rest/usermanagement/latest/group/membership
But it get all users/groups in all Crowd Directories, my expect is only get from one Directory.
Regards
Dung
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's happening because the username:password you are using belong to an application that is mapped to all directories.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Tarun, now I got your idea. I just added new Generic Application with application url is a current crowd url, now I can get user information in Directory which mapping to the new Application.
Do you know how to list all group?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, it's easy
please go through the docs here
GET /rest/usermanagement/1/group/membership
Retrieves full details of all group memberships, with users and nested groups. This resource is optimised for streaming XML responses, and does not support JSON responses.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Moses Thomas
I think you have mis-read the question as it's about "Crowd Rest API" but the link shared by you is for the "Cloud API"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes thanks for the point
@tiendungitdPlease see link posted by @Tarun Sapra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.