cancel
Showing results for 
Search instead for 
Did you mean: 

Adding users to groups error on commit: SI_ADM_ADD_USERGROUPS_TO_USER

Former Member
0 Kudos

Hi,

I'm trying to add a user to a group using the SDK. I'm using the Inline::Java perl module converting the Java examples to Perl. I can add users without a problem and I can query the CMS for information. When commiting the following perl version:

Java version: ((IUser)iUser).getGroups().add(groupInt);

Perl version: $iUser->getGroups()->add($groupInt);

I get this error:

method commit in class com.crystaldecisions.sdk.occa.infostore.IInfoStore threw exception com.crystaldecisions.sdk.occa.infostore.internal.InfoStoreException: The value for property 'SI_ADM_ADD_USERGROUPS_TO_USER' of the object named '' with id 2435 is not valid.

ID 2435 is the user id of the user I'm trying to add to a group. $groupInt is and integer with a value of 2, which is a valid groupid. What value does this expect?

Where can I find more information on this error and what I can do to correct it.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I've got same error, but I don't know the full context where you got your.

I was trying to insert a new user and adding it to my desired groups.

I've resolved (or bypassed) the problem by first creating user, committing and

after reaccess to the InfoStore for adding the new user to desider groups.

So: Create user + add group + commit -> give me errors

Create user + commit, add user to group + commit -> give no error

Hope helps.

Francesco