Authentication
Premium feature! This feature is available in the premium extension.
Dynamics CRM Integration Premium lets you create a membership system with Microsoft Dynamics CRM and WordPress.
With Dynamics CRM Integration, an authenticated WordPress user can be associated with a CRM entity record. The plugin allows to choose any type of entity to associate users with.
Our plugin offers two types of authentication: CRM-managed users and WordPress-managed users.
Regardless of the authentication type that you choose, AlexaCRM WordPress Integration must be installed in Dynamics CRM in order to enable this feature.
WordPress-managed users
If you already have a substantial number of WordPress users and want to continue managing them via WordPress (e.g. changing passwords, roles, display names, etc.), choose this type of authentication.
Users will use default WordPress screens for creating account, logging in and out, changing passwords.
Choosing authentication method
You can choose whether user is authenticated strictly by their username and password, or an additional check against CRM must be performed. This selection is performed in the Users screen (Admin / Users).
You can switch authentication method (WordPress or CRM) individually for each user, or use the appropriate bulk action.
- Link to CRM -- authenticate the user by their username and password, and additionally match the user against an Identity record in Dynamics CRM.
currentuser
object in view, form and template shortcodes will contain the entity record specified in the aforementioned Identity record. - Unlink from CRM -- authenticate the user by their username and password only. No identity record matching is performed and
currentuser
object is not available.
You can choose the default value for this setting for newly created users. It may be changed in Admin / Dynamics CRM / Portal, section Authentication for new users.
Creating identity records manually
In order to successfully authenticate a WP user with the help of Dynamics CRM, you need an Identity record for each user.
In order to create an Identity record, you should go to Advanced Find, select "WP Identity" as entity, click "Results", go to the results tab and click "New WP Identity".
It's strongly advised to use email address as a username in WordPress.
Enter the username (email address) in "Name", "User Name" and "Email Address" fields and save the new record.
Tracking WordPress user events in Dynamics CRM
Dynamics CRM Integration notifies the connected Dynamics CRM instance about new users, removed users and updated users. All that allows you act accordingly, e.g. send an email to the new user.
The plugin calls three specific custom actions to notify the CRM about events:
alex_WPUserCreated(UserId, Email, Roles)
alex_WPUserUpdated(UserId, Email, Roles)
alex_WPUserDeleted(UserId)