WebSphere Portal Server - Delete user from group with xmlaccess

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > August 2005 > Delete user from group with xmlaccess





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Delete user from group with xmlaccess
apriam

2005-08-04, 2:48 am

Hello all!
I have the script, that creates new group:

<portal action="locate">
<group action="create" name="cn=grp_test,ou=groups,dc=org,dc=ru"/>
</portal>

and the script that adds user into this group:

<group action="update" name="cn=grp_test,ou=groups,dc=org,dc=ru">
<member-user id="uid=test01,ou=people,dc=org,dc=ru" update="set"/>
<group>

but I was not able to find example of script, which removes user from group without that group deleting.
How can I delete user from group?

I'm using WPS 5.1.0.1.
fang

2005-08-10, 8:49 pm

This doesn't look possible. The items can be deleted from the portal
repository must be a type of resource with an objectid, and the member-user
is not treated as a type of resource.

"apriam" <apriam@novsu.ac.ru> wrote in message
news:1881642906.1123140754665.JavaMail.wassrvr@ltsgwas007.sby.ibm.com...
> Hello all!
> I have the script, that creates new group:
>
> &lt;portal action="locate"&gt;
> &lt;group action="create"

name="cn=grp_test,ou=groups,dc=org,dc=ru"/&gt;
> &lt;/portal&gt;
>
> and the script that adds user into this group:
>
> &lt;group action="update"

name="cn=grp_test,ou=groups,dc=org,dc=ru"&gt;
> &lt;member-user id="uid=test01,ou=people,dc=org,dc=ru"

update="set"/&gt;
> &lt;group&gt;
>
> but I was not able to find example of script, which removes user from

group without that group deleting.
> How can I delete user from group?
>
> I'm using WPS 5.1.0.1.



genqny

2005-08-15, 8:20 am

Hi Apriam,

I found your post very useful for our requirements. We have to migrate users from a legacy database to an oracle database that is accessed by portal server for authentication.

I was wondering if you provide me with some insight on how to use the xml scripts that you mentioned in your post along with some code snippets (if possible)

Thanks very much for the help








quote:
Originally posted by apriam
Hello all!
I have the script, that creates new group:

&lt;portal action="locate"&gt;
&lt;group action="create" name="cn=grp_test,ou=groups,dc=org,dc=ru"/&gt;
&lt;/portal&gt;

and the script that adds user into this group:

&lt;group action="update" name="cn=grp_test,ou=groups,dc=org,dc=ru"&gt;
&lt;member-user id="uid=test01,ou=people,dc=org,dc=ru" update="set"/&gt;
&lt;group&gt;

but I was not able to find example of script, which removes user from group without that group deleting.
How can I delete user from group?

I'm using WPS 5.1.0.1.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com