cancel
Showing results for 
Search instead for 
Did you mean: 

Create/Delete a BO user with RESTful services

Former Member
0 Kudos

Hello,

In the previous version (XI R3) I used CrystalReport libraries to talk to BusinessObjects. When wanting to create an user in BO programmatically, I used the code you can see belowhand.

Recently we have purchased BI 4.1 and I'm trying to translate all old code and calls to the new version of the software, trying to always use RESTful services to talk to BI.

Is there any way of creating/deleting a BO user with RESTful services? I haven't found any documentation about this. If it is not possible, how would you suggest to go on about doing it? I work in a .NET(C#) environment.

Thanks and kind regards,

Enrique

                InfoStore boInfoStore;

                InfoObjects boNewUserObjects;

                InfoObject boNewUserObject;

                PluginInfo boUserPlugin;

                CrystalDecisions.Enterprise.Desktop.User boUser;

                //String groupName = userGroupName;

                //string query = "";

                EnterpriseSession enterpriseSession = null;

                SessionMgr sessionMgr = new SessionMgr();

                enterpriseSession = sessionMgr.GetSession(sEnterpriseSession);

                boInfoStore = GetInfostore(connectionString, enterpriseSession);

                //grab the shortcut plugin's info

                boUserPlugin = boInfoStore.PluginManager.GetPlugins("Desktop")["CrystalEnterprise.User"];

                //create a new user info object with the shortcut plugin

                boNewUserObjects = boInfoStore.NewInfoObjectCollection();

                boNewUserObject = boNewUserObjects.Add(boUserPlugin);

                //grab the plugin interface

                boUser = new CrystalDecisions.Enterprise.Desktop.User(boNewUserObject.PluginInterface);

                //populate the user object with properties

                //Login

                boNewUserObject.Title = newLogin;

                //Connection type

                boUser.Connection = CeConnectionType.ceConnectionConcurrent;

                //Fullname

                boUser.FullName = fullName;

                string newPassword = getBOPassword(Convert.ToInt32(personID));

                //Password

                boUser.NewPassword = newPassword;

                //Password expiration

                boUser.PasswordExpires = false;

                //Password allow change

                boUser.AllowChangePassword = false;

                //DEscription du user

                boUser.Description = "SHADOW";

                //SAVE the changes to the Infostore

                boInfoStore.Commit(boNewUserObjects)

Accepted Solutions (1)

Accepted Solutions (1)

daniel_paulsen
Active Contributor
0 Kudos

Hi Enrique,

Currently the BI Platform Rest SDK is limited to functionality you have within BI Launchpad (folder navigation, viewing, scheduling etc.) and cannot perform the administrative tasks available in the CMC.

For administrative tasks such as user creation, you will still need to use the .NET or Java BI Platform SDKs or Platform Web Services (SOAP) SDKs

Dan

NestleCH
Participant
0 Kudos

Dan,

Do you know if there is any plans in the near future to include these type of tasks (user creation, folder creation etc) into the Restful service?

Cheers

Neal.

daniel_paulsen
Active Contributor
0 Kudos

Hi Neal,

Yes, User and UserGroup management has been added to BI4.2.  I don't think Folder creation is there though.

For a list of the new apis available you can check out the

"Business Intelligence platform RESTful Web Service Developer Guide 4.2"

on the help portal:  SAP BusinessObjects Business Intelligence platform 4.2 – SAP Help Portal Page

Dan

Answers (1)

Answers (1)

Verakso
Participant
0 Kudos

As several has mentioned, this functionality is available in version 4.2.

I have made a short blogpost on how to do this with the RESTfull Web Service api using Microsoft PowerShell. You can read it here: