on 11-26-2014 3:13 PM
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)
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.