CON_FacultyCommunity_TDTM
Contact and User trigger handler/TDTM for faculty community
Contact
Custom Permission | REDU - Admin |
Event | BeforeUpdate, AfterInsert, AfterUpdate |
Object | Contact |
Related RIO Education Settings | Auto Faculty Community Registration Faculty - Group Faculty - Permission Set Faculty - User Profile |
Description
Whenever a new Contact's Faculty Member and Create Community User fields are set, or whenever an existing Contact is updated to this state, this class will create a Faculty profile User record, as long as the Contact do not already have one.
This class will also provision that user (or the existing user if applicable) as a member of the Faculty Community by assigning them both the 'REDU - Faculty' Permission Set, and membership in the 'REDU - Faculty' Public Group, if they do not already have these assignments.
Furthermore, if a Contact was updated to the triggering state, this class will ensure that both the Contact record and the associated User record for the Faculty Community are synchronized accordingly. If an updated Contact does not have a User record, a new user will be created.
All this happens only if the RIO Education Custom Setting 'Auto Faculty Community Registration' is enabled.
Contact Field | User Field |
---|---|
FirstName | FirstName |
LastName | LastName |
Title | Title |
MailingStreet | Street |
MailingCity | City |
MailingState | State |
MailingPostalCode | PostalCode |
MailingCountry | Country |
Phone | Phone |
MobilePhone | MobilePhone |
See also: Creating Users
User
Custom Permission | REDU - Admin |
Event | AfterInsert, AfterUpdate |
Object | User |
Related RIO Education Settings | Auto Faculty Community Registration Faculty - User Profile |
Description
When a new User record is created for the Faculty Community, this class creates a Faculty Contact record in accordance with the new User record. The new User record will then be automatically provisioned from the new Contact (i.e. Faculty Permission Set assignment, Public Group membership, and Contact Share Edit access).
Furthermore, if the User is updated, this class will ensure that both the User record and the associated Contact record are synchronized accordingly.