Anonymous_User Absent Member.
Absent Member.
390 views

get/display all IdM role/resource in the Request Form


Dear Friend,

I am creating a new workflow and in the 'Request Form' i want to display
the list of avaiable IDM roles and resources in a list box (all idm
roles and resources). Please help in this.


Secondly i want one suggestion/ or guidence -
As i am new to this NetIQ idm, so for any use case i dont know how to
proceed, as novell does not appriciate customizing the war, and i am
also not getting any api's. and finding lot of limitation while
customization, as NIM has its own style of development.

Thanks for your help!


Regards,
Amit Singh


--
ameet140
------------------------------------------------------------------------
ameet140's Profile: https://forums.netiq.com/member.php?userid=4993
View this thread: https://forums.netiq.com/showthread.php?t=48692

Labels (1)
0 Likes
7 Replies
Anonymous_User Absent Member.
Absent Member.

Re: get/display all IdM role/resource in the Request Form

Amit,

the easiest way to display all roles/resources in your form would be to
create a DAL query in Designer with your specs, then call the queries in
the start activity, and display the results in a picklist.

To get a head start in IDM development or customization, you might also
contact Novell/NetIQ consulting to see if some custom workshop is
available in your area.

Good luck

Wolfgang


On 16.09.2013 18:26, ameet140 wrote:
>
> Dear Friend,
>
> I am creating a new workflow and in the 'Request Form' i want to display
> the list of avaiable IDM roles and resources in a list box (all idm
> roles and resources). Please help in this.
>
>
> Secondly i want one suggestion/ or guidence -
> As i am new to this NetIQ idm, so for any use case i dont know how to
> proceed, as novell does not appriciate customizing the war, and i am
> also not getting any api's. and finding lot of limitation while
> customization, as NIM has its own style of development.
>
> Thanks for your help!
>
>
> Regards,
> Amit Singh
>
>

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: get/display all IdM role/resource in the Request Form


I have created a query named *'IdM Resources' *with below details-

key : resourceListSearch
display name : IdM Resources
Query Entity : Container

Parameter: NO
Query Condition : NO

Search:
search root : 'CN=ResourceDefs,CN=RoleConfig,CN=AppConfig,CN=User
Application Driver,CN=ctsdriver,O=system'
search scope : <Default>
Max Search Entries : 0

And now i setted the below for form field name 'test'-
data type- 'dn'
control type - DNQuery

So, when i go to workflow and select the 'start' activity, i am not
gettig any relevent option to set pre-Activity logic for my field
'test'.

So I have setted the porperties for the field 'test' -
Display expression - IDVault.globalQuery("test", "resourceListSearch")

And not getting the output.

Kindly help , where i am wrong or missing.

Thanks for your help !


--
ameet140
------------------------------------------------------------------------
ameet140's Profile: https://forums.netiq.com/member.php?userid=4993
View this thread: https://forums.netiq.com/showthread.php?t=48692

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: get/display all IdM role/resource in the Request Form


performed the above steps to get all IdM Resources, I also need to get
all IdM Roles....

I am stuck in this problem from 2 days, any help will really
appriciated. Thank you!


--
ameet140
------------------------------------------------------------------------
ameet140's Profile: https://forums.netiq.com/member.php?userid=4993
View this thread: https://forums.netiq.com/showthread.php?t=48692

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: get/display all IdM role/resource in the Request Form

The IDVault.globalQuery function has 3 parameters in form scripts, while
in other workflow activities the first parameter (fieldName) is omitted.

Form script:
IDVault.globalQuery( fieldname, key, param)
Activity script:
IDVault.globalQuery( key, param )

If your query doesn't have parameters, put something like
IDVault.globalQuery( "resourceListSearch", { } );
in the pre-activity mapping for your picklist.

Wolfgang

On 17.09.2013 11:14, ameet140 wrote:
>
> performed the above steps to get all IdM Resources, I also need to get
> all IdM Roles....
>
> I am stuck in this problem from 2 days, any help will really
> appriciated. Thank you!
>
>

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: get/display all IdM role/resource in the Request Form


Thank you Wolfgang ... It worked !!!

Thanks a lot ... 🙂


--
ameet140
------------------------------------------------------------------------
ameet140's Profile: https://forums.netiq.com/member.php?userid=4993
View this thread: https://forums.netiq.com/showthread.php?t=48692

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: get/display all IdM role/resource in the Request Form

On 09/17/2013 06:44 AM, ameet140 wrote:
>
> Thank you Wolfgang ... It worked !!!
>
> Thanks a lot ... 🙂
>
>

Greetings,
Please be aware that depending upon where a DAL Query is called it
will use a certain security context, which can change the results that
are returned.

Within a form (onload/onchange/onclick) it will use the security context
of the logged in user

In the pre-activity of a Start or Approval Activity or in a map
activity, will use the security context of the "Admin" user.

This means that if you want Roles (and Resources) to be listed then if
you get the data in the Pre-Activity you will be using the Admin context
and can return Roles (and Resources) that you do not want a "normal"
user to request (like being a Provisioning Administrator).

Therefore, you may need to add a condition in the query to exclude
items. I have done this in the past:

CN not contains Admin

and

CN not contains Manager

This way the DAL query will not return any of the default "Admin" or
"Manager" Roles.

Please keep this in mind.

--

Sincerely,
Steven Williams
Lead Software Engineer
NetIQ
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: get/display all IdM role/resource in the Request Form


Sure Steven and Thank you !


--
ameet140
------------------------------------------------------------------------
ameet140's Profile: https://forums.netiq.com/member.php?userid=4993
View this thread: https://forums.netiq.com/showthread.php?t=48692

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.