Author Topic: CMOD Read all priviliges of an Application Group  (Read 2018 times)

hubrch

  • Newbie
  • *
  • Posts: 1
    • View Profile
CMOD Read all priviliges of an Application Group
« on: September 20, 2019, 10:26:35 AM »
Hi,

ist it possible to read all priviliges of an Applciation Group (like listed in the tab of admin Client) with arsxml or odwek?
Currently i can only read users an Groups with arsxml seperately:
Code: [Select]
odServer.logon();

XMLCallback cb = new XMLCallback();
Properties p = new Properties();

byte[] bArray = odServer.xmlParse(
"<?xml version='1.0' encoding='UTF-8'?><onDemand xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='D:\\anwend\\IBM\\OnDemand\\V9.5\\xml\\ondemand.xsd'><group name='_ALL'/></onDemand>",
ODConstant.OD_ARSXML_ACTION_EXPORT, p, cb)

Lars Bencze

  • Full Member
  • ***
  • Posts: 116
  • CMOD Expert at Skandia
    • View Profile
    • INACTIVE - Bezland Consulting
Re: CMOD Read all priviliges of an Application Group
« Reply #1 on: November 25, 2019, 05:54:26 AM »
Here is an arsxml sample you can test and edit for your own purposes. You need not include user permission if you don't need it.

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<onDemand xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:noNamespaceSchemaLocation="C:\IBM\OnDemand\V10.1\xml\ondemand.xsd">

<!-- get application groups -->
  <applicationGroup name="_ALL" >
   <permission user="Admin" />
  </applicationGroup>

</onDemand>
OnDemand for MP expert. #Multiplatforms #Admin #Scripts #Performance #Support #Architecture #PDFIndexing #TSM/SP #DB2 #CustomSolutions #Integration #UserExits #Migrations #Workflow #ECM #Cloud #ODApi