on ‎2020 Jun 30 7:10 AM
How does sap sales cloud system lock the business users who have not logged on for a certain number of days ?
Request clarification before answering.
Not sure it does out of the box. We have written an MDR to do that on Service Cloud but it should be usable for Sales Cloud.
It was quite tricky to do though because you need to carefully distinguish between those who have never logged on and those who have logged in but not eg for six months.
The way our MDR works:
1. After approx 5 and a half months of not logging in send warning email to user that they will be locked in two weeks
2. If the user logins in the next two weeks after they get that email, they won't be locked
3. If they don't login in those two weeks, userid will be locked by MDR and they need to contact support to be unlocked
4. Every quarter we use Data Workbench (this bit cannot be done in MDR) to set an end date on those users who have been locked for some time. If the user wants access to C4C again after being end dated, they will need to request a new userid.
The reason for doing step 4 was that locked users used to appear in dropdowns for example when allocating a ticket but I think that may have now been fixed. So 4 may not be necessary now.
If this would be of interest I will try to do a blog to explain how it was done - let me know.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Matthew,
We had a similar situation in the past but could not achieve it and built a manual workflow to achieve this. Hence just for my info, I would like to know, How did you get the user's last login DateTime information details in PDI in order to trigger email or locking the user?
Many Thanks
Saurabh
Hi Saurabh. Yes that is the tricky bit because that field is not avalable in PDI. So what we did was create a report with that field then the MDR runs that report via OData call and gets the results, including that field. It's a fair bit of work, which I can detail if I have time to a blog post. Here's a code snippet that shows how we run the report.

Hi damo99
This feature is not available as Standard.
Check the influencehttps://influence.sap.com/sap/ino/#/idea/215627/
It's in accepted state which means this might be delivered in one of the future releases.
Best Regards.,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.