UPD: Update the api to work more with "Users" than with their ids.
UPD: add another check for the certprofile.

In some situations double checking is better.