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
| Name | Type | Description |
|---|
| ContactId | string | Contact record ID |
| UserId | string | User record ID, if the Contact is already enabled as portal user. |
| AccountId | string | The Account ID that User and Contact are both linked to. |
| IsActive | bool | 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)
{
...
}