Exception modifying admin roles

We have a workflow launched from the end user side. The workflow has an activity that checks out the user view, an activity that updates user attributes, and an activity that checks in the user view. A user logs into the self service (end user ?http://<idm>/user) page, and clicks on the workflow. When the view is getting checked in, we get the error

com.waveset.util.WavesetException: Error modifying admin user good.good: com.waveset.util.WavesetException: Not allowed to modify the Admin Roles of User 'good.good'.

(The user name is good.good)This is how we抮e setting the adminRoles in the activity that抯 updating user attributes:

<Activity name="Update">

<Action>

<expression>

<block trace="true">

<set name="user.accounts[Lighthouse].adminRoles">

<list>

<s>User_Group_Admin</s> <!-- an admin role we抳e defined -->

</list>

</set>

</block>

</expression>

</Action>

</Activity>

I've added the following within the <AdminGroups> element of the EndUser AdminGroup.

<ObjectRef type='AdminGroup' id='#ID#Connect Admin Roles'/>

and still receive the exception

[1434 byte] By [Joseph.Smith] at [2007-11-26 8:44:40]
# 1

hi,

As in my knowlage be can't checkout the user view from the end user and update the user.

for getting view of user add this line of code may be it's work

<Action id='0' application='com.waveset.session.WorkflowServices'>

<Argument name='op' value='checkOutView'/>

<Argument name='type' value='User'/>

<Argument name='id' value='$('good.good')'/>

<Argument name='subject value='configurator''>

Shant at 2007-7-6 22:27:35 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
What credentials are you using for the checkin / checkout actions? It appears that the user does not have the rights to assign admin roles.You need to specify a subject for these actions. The subject should be a user with rights to assign admin roles to users.
chits98 at 2007-7-6 22:27:35 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3

Similar to this correct?

<Action class="com.waveset.session.WorkflowServices">

<Condition>

<not>

<ref>WF_ACTION_ERROR</ref>

</not>

</Condition>

<Argument name="op" value="checkinView"/>

<Argument name="subject" value="configurator"/>

<Argument name="authorized" value="true"/>

<Argument name="view">

<expression>

<ref>user</ref>

</expression>

</Argument>

</Action>

JosephSmith at 2007-7-6 22:27:35 > top of Java-index,Web & Directory Servers,Directory Servers...
# 4
Yes.... and you get the error "Not allowed to modify the Admin Roles of User 'good.good'." with this code?
chits98 at 2007-7-6 22:27:35 > top of Java-index,Web & Directory Servers,Directory Servers...
# 5
No. That is the code I changed so that I won't get the error anymore.
JosephSmith at 2007-7-6 22:27:35 > top of Java-index,Web & Directory Servers,Directory Servers...