cancel
Showing results for 
Search instead for 
Did you mean: 

Portal Unlock Date

Former Member
0 Kudos

Hi,

I want to fetch date portal account was last unlocked.

I can find this date in 'Identity Management', but I am not able to fetch it in custom web dynpro application.

I checked classes IUserAccount and IUserMaint but could not find relevant method to fetch this detail.

Could you please suggest?

Regards,

Apurva

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rakesh,

Thanks for the reply.

However, lockDate() will indicate date on which account was locked and not the date on which it was unlocked and will not serve the purpose. With lastModified()  date we can not be 100 % sure, for example , suppose after unlocking the account, language of user was changes, then modified date indicates date of language change and not unlock date.

I am surprised to see why API is missing to get this important information.

As for as I know 'Identity Management' application is developed using Web Dynpro Java. I wonder how last unlocked date is getting fetched in this application?

Can someone from SAP team help me?

Regards

Apurva

Former Member
0 Kudos

Hello Apurva,

Refer the below thread

http://scn.sap.com/message/10956630

You can use   IUSER.getAttribute("","");

Regards,

Manivannan P

Former Member
0 Kudos

Hi Manivannan,

What would be attribute name for last unlock date?

Regards,

Apurva

Former Member
0 Kudos

Hi Manivannan,

What would be attribute name for last unlock date?

Regards,

Apurva

Former Member
0 Kudos

Hi Apurva ,

Can you use attribute "unlockdate" to get the unlockdate .

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Apurva ,

are you able to fetch unlockdate of user with "unlockdate" attribute ?

Former Member
0 Kudos

Hi,

Below code is not working. Its always returning null.

userAccount.getAttribute(null,"unlockdate");

Any other solution?

Regards,

Apurva

Former Member
0 Kudos

Hi,

Got it. Namespace was incorrect.

Correct code is:

String [] unlock;

unlock = userAccount.getAttribute("com.sap.sercurity.core.usermanagement","unlockdate");

Long t1 = Long.valueOf(unlock[0]);

Timestamp tt1 = new Timestamp(t1.longValue());

This gives timestamp for unlock date.

Regards,

Apurva

Former Member
0 Kudos

Hi Apurva ,

i don't see any API to fetch lat unlock date of user account .

May be u can use lockDate() and lastModified() to get unlockdate .ideally that date after lockdate should be unlocking of user account so lastmodifieddate can give you unlock account date.

but this may not be 100% sure .

if LDAP is configured i believe you can directly fetch these parameters from LDAP itself.

Regards,

Rakesh Kumar