Focal Point
(Solved) REST Service addusertogroup

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2447072286

May 10, 2016, 10:26 AM
Mike in DeLand
(Solved) REST Service addusertogroup
Hi,
I need to use REST services to add a bunch of users to a bunch of groups. I have the documentation, but it does not show the syntax if I have nested groups - like the ones automatically created by the domain template tool.

For example - group name = "nameoftheApplication" and sub-groups "basicuser", "advanceduser" under that group. How do you do that with the REST call? Anybody know?

This message has been edited. Last edited by: Mike in DeLand,


Webfocus 8
Windows, Linux
May 16, 2016, 09:27 AM
Tamra
Hi Mike,

While we wait for others to reply....

Please review RESTful Web Services documentation available here:

Ref.:
WebFOCUS RESTful Web Services Developer's Guide

Chapter 4 - WebFOCUS Security Administration RESTful Web Service Requests

Thank you for participating in the Focal Point Forum.

Kindest regards,
Tamra Colangelo
Focal Point Moderator - Information Builders Inc.
* Summit 2016 – June 13-17 in Reno, Nevada  - http://www.informationbuilders.com/events/summit


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
May 17, 2016, 03:30 PM
<Emily McAllister>
Hello Mike,
I see you created a case for this and got an answer. For anyone else who has a similar question, here is the answer:

http://host:port/ibi_apps/rs/ibfs/SSYS/USERS/Userid?IBIRS_action=addUserToGroup&IBIRS_groupPath=/SSYS/GROUPS/nameofthe Application/basicuser;/SSYS/GROUPS/nameoftheApplication/advanceduser

May 17, 2016, 04:19 PM
Mike in DeLand
Yes, thank you. I have not actually tried this yet, so I didn't want to put out any potentially bad information.


Webfocus 8
Windows, Linux
May 18, 2016, 10:10 AM
GavinL
Sorry I didn't see this post earlier, but I had put together a list of links for creating users groups, adding users to groups, deleting users and groups..

Maybe someone else can use some of these in the future.

Create User
http://localhost:8080/ibi_apps/rs/ibfs/SSYS/USERS/MyNewUser?IBIRS_action=put&IBIRS_object=<object _jt="IBFSUserObject" description="My New User" email="my.new@user.com" password="abc123" type="User"><status _jt="IBSSUserStatus" name="ACTIVE"/></object>


Create Group
http://localhost:8080/ibi_apps/rs/ibfs/SSYS/GROUPS/MyNewGroup?IBIRS_action=put&IBIRS_object=<object _jt="IBFSGroupObject" container="true" description="My Group Title" type="Group"></object>


Adding User to One or more Groups
http://localhost:8080/ibi_apps/rs/ibfs/SSYS/USERS/MyNewUser?IBIRS_action=addUserToGroup&IBIRS_groupPath=/SSYS/GROUPS/MyNewGroup;/SSYS/GROUPS/Administrators


Delete Group
http://localhost:8080/ibi_apps/rs/ibfs/SSYS/GROUPS/MyNewGroup?IBIRS_action=delete


Delete User
http://localhost:8080/ibi_apps/rs/ibfs/SSYS/USERS/MyNewUser?IBIRS_action=delete


Also I don't know how to use it as this page complexes me, but IBI has a page to test or create or delete these links.. I think it is anyway.
http://localhost:8080/ibi_apps/rs?IBIRS_action=TEST

This message has been edited. Last edited by: GavinL,



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server