Business Objects XI 3.1: Add user to usergroup with Web Services SDK
November 25, 2008 | No Comments »
Thought that userGroup . addUserIDs () will help but it failed silently(!) over and over.
The solution is:
1. Use this query to fetch UserGroup objects with all fields
query://{SELECT * FROM CI_SYSTEMOBJECTS WHERE SI_PROGID = 'CrystalEnterprise.UserGroup'}
2. Add a User CUID to Users of UserGroup like this
EntUsers entUsers = userGroup.getEntUsers();
if(null == entUsers)
entUsers = EntUsers.Factory.newInstance();
entUsers.addEntUserIDs(chosenUser.getCUID());
and call update() on BIPlatform with UserGroup inside the InfoObjects.
Voila!














