Table of Contents


PortalUserInfo

This class is used in the PortalManager and allows the developer to check the status of a Contact and see if the Contact is already enabled as a portal user or not.

Properties

NameTypeDescription
ContactIdstringContact record ID
UserIdstringUser record ID, if the Contact is already enabled as portal user.
AccountIdstringThe Account ID that User and Contact are both linked to.
IsActivebool

Returns true if the user is active

 

Example of checking a Contact's status:

var contact = Database.Query<Contact>()
   .Where(a => a.Email == "John.Smith@testman.com")
   .First();

var portalUserInfo = PortalManager.CheckUserStatus(contact);

if (portalUserInfo.IsActive) 
{
   ...
}