on 04-24-2015 9:08 AM
Hi Friends,
i have created Password reset form in IDM 8.0 , now i am able to reset password in systems but when i am resetting password IDM will reset password in ALL Connected server where his id is present.
now i need that user can able to select system where he want to reset password through password reset form.
Thanks,
Mohinder
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mohinder,
Here is the approach without getting into much technical details,
1) Create a new custom MultiValue attribute. In "Attribute Values" tab, write a SQL to fetch the list of repositories that the user has access.
2) Include this attribute in your password reset form. This will show the list of repositories that user has access when they open the form.
3) Then create a job under your password reset form that reads the value of custom attribute and calls password reset hook of those repositories.
Kind regards,
Jai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mohinder,
Implementing SAP IDM solution out of box is very straight forward. But you should give a thought to learn SQL and Javascript. It's very important to be successful with customization in IDM. There are blogs and sites for self-learn.
select rep_name from MC_REPOSITORY where rep_name in (select right(mcattrname, len(mcattrname) - 7) from idmv_vallink_basic with (nolock) where mskey = %usermskey% and left(mcAttrName, 7) = 'account')
Yup, I understand they changed few things in IDM 8.0. I did not get chance to work with IDM 8.0 yet, so above comment is more coupled with IDM 7.2. Hopefully they are same in IDM 8.0 as well. If they are not, then it will be useful if you post how you implemented this in IDM 8.0. Thanks.
Kind regards,
Jai
Message was edited by: Jai Suryan
Hello,
this should be sufficient for the comparison based on account attributes:
select right(mcattrname, len(mcattrname) - 7)
from idmv_vallink_basic
where mskey = %usermskey% and left(mcAttrName, 7) = 'account'
The original script Jai (I guess) referred had data in description column from mc_repository for comparison in the where-clause, which you don't need
select rep_name from MC_REPOSITORY
where rep_name in (select right(mcattrname, len(mcattrname) - 7)
from idmv_vallink_basic
where mskey = %usermskey%
and left(mcAttrName, 7) = 'account')
and left(rep_Description, 4) = 'blah'
order by rep_name
regards, Tero
Try substr instead of left-function: Oracle substr
Hi Tero,
I tried both query and it worked for me,
select right(mcattrname, len(mcattrname) - 7)
from idmv_vallink_basic
where mskey = %usermskey% and left(mcAttrName, 7) = 'account'
select rep_name from MC_REPOSITORY where rep_name in (select right(mcattrname, len(mcattrname) - 7) from idmv_vallink_basic with (nolock) where mskey = %usermskey% and left(mcAttrName, 7) = 'account')
May be Mohinder did not copy paste properly.
Password reset task with option to select repository seems to be coming from many ppl. Will you be able to create a blog with details on how to achieve this, as it is your idea in 1st place?
Kind regards,
Jai
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.