Focal Point
[SOLVED] Create/Modify/Delete Accounts via WF REST/Web Service

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

April 13, 2016, 10:52 AM
GavinL
[SOLVED] Create/Modify/Delete Accounts via WF REST/Web Service
Is there a way to create, modify, and delete use accounts and groups via an API of some sort? We have an in house SSO group, that all users have to log in to. That information is passed over to WebFOCUS and we have all that working, however today we have to manually create all the users and place them in the groups they have rights to manually within WF.

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



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
April 13, 2016, 03:00 PM
GavinL
Create/Modify 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/Modify
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

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



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
April 13, 2016, 04:40 PM
GavinL
Documentation!!!

http://documentation.informati...rest_webservices.pdf



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
April 13, 2016, 06:41 PM
Waz
Did you find the test site ?

http://host:port/ibi_apps/rs?IBIRS_action=TEST



Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

April 14, 2016, 09:05 AM
GavinL
Ha, nope.. IBI always has something hidden out there.



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
April 17, 2016, 05:58 PM
Waz
I think you need to turn it on in the Admin Console.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

April 18, 2016, 09:27 AM
GavinL
I had tested it via my local copy, which is a default install, and it was there.



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