How to get Privileges from an IRole in AgileSDK?

Hi,

   using the Agile SDK, how can one retrieve associated privileges to a Role? For a given role X, which are the Privileges it includes?

A few attempts I already tried

  1. The IRole interface does provide methods to retrieve the information and offers only the methods from INode (getProperties(),…).
  2. Privilege are also available as INodes only, can’t get more information about the relationships to roles from there
  3. Can’t run admin reports using agile SDK (only bom explosion, and bom comparison report)
  4. I could not find a webservice that would provide more information the in the admin session

Thanks in advance and best regards,
   Dennis

Add Comment
3 Answer(s)

Hi Dennis,

There is no possibility to work with privileges using common API. Probably names of contained privileges can be retrieved using properties of a singole IRole.
Available propertes can be retrieved calling on the IRole object (extending the INode) he method “IProperty[] getProperties()”

Agile Angel Answered on June 3, 2016.
Add Comment

Hi Antonio,

   thanks for your feedback. Properties only return name, apiname, type and description.

Do you know if the report can be executed somehow? It can be retrieved as follows IReport object = (IReport)m_session.getObject(ReportConstants.CLASS_ADMINISTRATOR_REPORT, “Roles and Privilege Summary Report”); but only the IProduct Reports can be executed,… for some mystic logic. 

 

Agile Angel Answered on June 3, 2016.

Please check your mailbox 🙂

on June 6, 2016.

Hi Antonio,
I have retrieved report object as mentioned above but need to execute it using agile SDK
can you please help me out to do so.
Thanks in advance

on May 18, 2017.
Add Comment

Hi all,
I have retrieved report object as mentioned above but need to execute it using agile SDK
can you please help me out to do so.
Thanks in advance

Agile User Answered on May 18, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.