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
- The IRole interface does provide methods to retrieve the information and offers only the methods from INode (getProperties(),…).
- Privilege are also available as INodes only, can’t get more information about the relationships to roles from there
- Can’t run admin reports using agile SDK (only bom explosion, and bom comparison report)
- I could not find a webservice that would provide more information the in the admin session
Thanks in advance and best regards,
Dennis
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()”
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.
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