how to delete delete permission in application group using arsxml

Previous topic - Next topic

ewirtz

Hello,

does anybody know how to delete permissions in folders and application groups using ARSXML.

regards

Egon

Greg Ira

I haven't done a delete yet but I believe it should just be something like:

ARSXML UPDATE -h archive -u user -p password -i "update.xml"

And update.xml would contain your xml:

<?xml version="1.0" encoding="IBM-1047" ?>
<onDemand xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noName ........

<applicationGroup name="OPCREP" >
  <permission task="delete" user="username" <- your permissions/user you wish to delete />
</applicationGroup>
</onDemand>

Greg Ira

Just reread your subject line.  Did you want to delete a users delete permissions?  If so, that's just an update of the permissions in the application group
e.g:

<?xml version="1.0" encoding="IBM-1047" ?>
<onDemand xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noName ........

<applicationGroup name="AGGROUP" >
<permission task="update" user="username" docDeletePerm="No"  />
</applicationGroup>
</onDemand

ewirtz

Hi Greg,

it has worked fine with the token ' <permission task="delete" user="username" <- your permissions/user you wish to delete />'. 

I haven't known this possibility.

Thanks

Egon