long story short, due to system setup from time to time we have inactive users. I would like to setup a process for department that handles rest of the systems but they cannot be given access to SF, to be able to activate user.

My mind is going trough email service that will trigger apex class based on username or email address. Not to good with apex, found this thread here but could not make it work: Is it possible to reactivate a deactivated user through apex?

Any help is much appreciated(new here)

1 Answer 1


Long back i had worked on simliar requirement to create a case with specific record type only subject starts with specific text in email template as well as with attachments only & i need to extract account name from subject and get account id through query.

In your case you need to follow specific template to reactivate users and you need to extract user name from email with string functions.

Following posts would be helpfull for you.


String Functions:


Email Services to extract name:


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .