Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
User mapping groups in ihub3/F-Type server
Srinivas Yarra
<p>Hi,</p>
<p> </p>
<p>I have created test as user and group1 , group2 as groups from admin console and assigned test user to group1 and group2 groups. Is any jsapi or web service to fetch all groups which user i.e test is mapping groups.</p>
<p> </p>
<p>Thanks,</p>
<p>Srinivas</p>
Find more posts tagged with
Comments
JFreeman
<p>Are you using iHub 3 or iHub 3.1?</p>
<p> </p>
<p>If you are using 3.1, the new REST API that was introduced can be used to obtain this information.</p>
<p> </p>
<p>The REST API documentation can be found here: <a data-ipb='nomediaparse' href='
http://developer.actuate.com/resources/documentation/ihub31/rest-api/'>http://developer.actuate.com/resources/documentation/ihub31/rest-api/</a></p>
;
Srinivas Yarra
<p>Hi Jesse,</p>
<p> </p>
<p>Thank you for your reply.</p>
<p> </p>
<p>As of now , we are using iHub 3 server.</p>
<p> </p>
<p>Thanks,</p>
<p>Srinivas</p>
JFreeman
<p>I believe the best option is probably to look towards upgrading to 3.1 and using the REST API.</p>
<p> </p>
<p>However, there are some others options available with a 3.0 release depending on your use case.</p>
<p>Could you let me know your use case for how you are wanting to use this information within your environment/application?</p>
<p>With this information I should be able to help guide you to the available resources.</p>
Srinivas Yarra
<p>Hi Jesse,</p>
<p> </p>
<p>We have been upgraded to iHub3.1. Could you please guide me how I can get user groups which are belongs to user name like 'syarra'. I have seen like "localhost:5000/ihub/v1/users/1000010/usergroups" where userid in database is 1000010. I have user name like 'syarra' then i need to get user groups whichever groups he is in.</p>
<p> </p>
<p>Meanwhile Is any REST API It will give list of files in given folder name and full folder path till to parent folder in ihub3.1 ex: path is /Home/spm/ and folderName is abc.</p>
<p> </p>
<p>Thanks,</p>
<p>Srinivas</p>
JFreeman
<p>You can you use the GET /users to obtain the user ID of the user and then use the GET /users/{userId}/usergroups to obtain the list of groups the user belongs to.</p>
<p> </p>
<p>You can use the GET /folders to obtain a list of folders and the IDs in a specified directory. Then you can use the ID of the desired folder with GET /files to obtain a list of all files within the specified folder.</p>
<p> </p>
<p>You should take a look at the interactive REST API documentation. It can be accessed in your environment at <a data-ipb='nomediaparse' href='
http://hostname:5000/ihub/v1/ihubrestdocs/'>http://hostname:5000/ihub/v1/ihubrestdocs/</a></p>
;