Determining if the Current User is a Portal User in Creatio (formerly bpm’online)

There are likely times in Creatio when you need your code to behave differently depending on whether the current user is a full Creatio user or a portal user. This is a pretty easy thing to check. You can check if the current user is a portal user by using the following:

if (Terrasoft.isCurrentUserSsp()) {
    // is a portal user

You can also use the following:

if (Terrasoft.CurrentUser.userType === Terrasoft.UserType.SSP) {
    // is a portal user

Either way will get you what you need and your code can function accordingly. Once you know whether the current user is a portal user or not, you can still use the same methods to get the current user. Using things like:

var userContactId = Terrasoft.SysValue.CURRENT_USER_CONTACT.value;

To get the current user applies whether the user is a portal user or not.

Want content like this delivered to your inbox? Sign up for our newsletter!

Ryan Farley

Ryan Farley is the Director of Development for Customer FX and creator of He's been blogging regularly about SalesLogix, now Infor CRM, since 2001 and believes in sharing with the community. His new passion for CRM is Creatio, formerly bpm'online. He loves C#, Javascript, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

Submit a Comment

Your email address will not be published. Required fields are marked *