Hi everyone,
I have created a form where I am selecting application from a dropdown field and the roles assigned to that application is being displayed in next field. But I believe not more then 6 roles are being fetched.
I need to change my code such that after getting the roles related to the application, more roles also can be searched and can be added in the role field. Below is my code, please suggest a way to proceed for this.
In this image roles appeared automatically after I selected Application name which is okay. But I cannot search other roles assigned to it. Only 6 are appearing. else I can type anything and just add there which might not be the actual role assigned to that application.
What ever you are seeing in the form is not roles. it is a Entitlement field name. It is not a Entitlement value.
In the selected application, you have only 6 Entitlement field. So, it is displaying only 6
If you want a list of related roles of application, you must search on Bundle objects.
Also, if you want the entitlments of app, you must search on ManagedAttributes objects.
You can use context.getObjects(Bundle.class, qo) or context.Search(Bundle.class, qo). The first return a list of object and the second return an iterator
This is not a real method. Application has no “getRoles”.
Is your goal here to display all of the requestable IIQ roles that are associated with the given application? For example, IT Roles that have the application in their Profile, or Business Roles that require those IT Roles?
Or does “roles” have a specific meaning in the application you’re dealing with?
Yes @drosenbauer
I want to show roles in a dropdown field which are of selected application name and select them one by one by making roles field as multi value.
But I can’t see how can I find role of an application.
If I select type as role/Bundle I am getting all the roles present in sailpoint.