Learn about invitations in Dynamics 365 portals/ Powerapps portals

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com
It’s been sometime that I have written a blog. Has been a lot for the past 2 months, personally and professionally and finally I am delighted to pen this down.


Has been working on Dynamics 365 portals lately a lot and thought of sharing some of my experience in user registration and redeeming invitations.
Here is my Dynamics Customer who has set-up D365 portals and want that users should not able to register by themselves.  Just for a bit of explanation, when you first time set-up D365 portals, the portals would allow a someone to register using custom identities through the Register Tab. Check for the below screenshot.
image
As you can see, all a user needs to do is enter an email address, set-up a user name and password and then register. Internally that would create a contact in CRM. Please note that the portal contact at this point of time would not have any roles associated to it and hence they won’t be able to see any authenticated content. However, there is a potential problem that your CRM contacts would be flooded with unwanted registrations.
So we needed to disable that. But how?
The feature is actually called ‘Open Registration’ in D365 portals.
Disable Open Registration in D365 portals
Go to Portals –> Site Settings in CRM
Search for Setting –> Authentication/Registration/OpenRegistrationEnabled and open the record.
Set the value of the setting to false and Save it back.
image
Now if you clear your cache and open your website in the portals, you would find the option to Register is missing.
image
Great! We have disabled user self registrations. Now what our customer wanted was to register portal users only through the invitation code. So basically the process is, the CRM administration would send invitation to the contact from the Contact. The contact would receive the invitation email in his/her email and then click on the email to register themselves with the portal.
So let’s see how it should be done. From the above point it is apparent that the email being sent out to the contact is one of the major component in this redeeming process. So let’s go ahead and first check what’s in the email.


Configuring the email to send Invitation:
Go to CRM-> Settings-> Processes
Search for the process – “Send Invitation”
Open the workflow and de-activate it. It should look like below.
image
Click on the ‘Set Properties’ in the highlighted step in the above email.
Once the email editor opens, just check for the email body. Below is the highlighted email body.
image
You can actually modify the email as per you needs. However the most important area of the email is setting the value of the URL highlighted above. This should be the same url the user is redirected when he/ she clicks on the ‘Redeem Invitation’ tab.
image
The url would be in the format – https://<your portal name>/register.
Just copy this URL and paste it in the email body.
image
Save & Close and activate the workflow.
Now we are at the final step


Sending Invitation to the contact:
Go to the contacts section in CRM and select the contact for which you want to send the invitation and then Click on the ‘Create Invitation’ on the ribbon menu.
image
You can set the expiry date of the invitation, the associated account for the portal contact on successful redeem.
image
Save it. Once saved, an invitation code would be automatically generated.
image
there is one more thing that you can do once a contact successfully register themselves using the invitation code.
You can set the We-roles for the user. I selected ‘Authenticated User’ web-role
image
Great! So now the invitation should be sent.
Click on Run Workflow from the ribbon and then select the ‘Send Invitation’ workflow we modified.
image
Once run, the user would get an email with the registration link. Below is the sample user registration link that the portal contact would receive in email.
https://xrmportal2.microsoftcrmportals.com/Register/?returnurl=%2f&invitation=EP2f2DlBSXdyww0ZUlcf92NC15YZJFeU-f3B6GNRWTLVOGA1rZ4h1SGxh8PJJOGiA5H7l1GFwXhcbnBCJCI3DNd-96cmQ3NQagxJLcFsd5XvNVCN3K3e5O38n9kS6vW5nVXJyg6wfwhEjCvebslf9II3vJq57gvNBuH2G0QTE-I-
Clicking on the above link, the portal user would redirected to the redeem page.
As you can see from the below screenshot, the invitation code is automatically inserted in the box.


image
Clicking on register will take to the next screen where the portal user can choose a login username and password of their choice. However
image
All set and done and the portal contact is now able to login to the D365 portal.
If we go back to CRM now, you would see the contact is now having an associated Web Role – ‘Authenticated Users’
image
P.S – > If you do not see the Redeem Invitation tab in your portal, there is some issue in Site settings. Please make sure the below site setting is enabled as true.
image
For developers/ customizers graduating from ADX 7.0 to D365 portals, in ADX 7.0  the Redeem Invitation tab was enabled using the site setting –> Authentication/Registration/RequiresInvitation
However this setting didn’t work for me in Dynamics Portals and it seems to have been replaced with the Site Setting –> Authentication/Registration/InvitationEnabled
Hope this helps!
Debajit Dutta
(Dynamics MVP)
For training/ consulting please email at info@xrmforyou.com
Visit our products page – http://www.xrmforyou.com/products.html


Discover more from Debajit's Power Apps & Dynamics 365 Blog

Subscribe to get the latest posts sent to your email.

10 thoughts on “Learn about invitations in Dynamics 365 portals/ Powerapps portals”

  1. Hi Debajit- thank you for your article. We have this setup at our organization but have been unable to display the password policy on the password creation page when a user is redeeming an invitation. Do you know if it is possible to customize the username and password creation page for this purpose?
    Thank you!
    Josh

      1. Hi Debajit,
        Were you able to find out anything on displaying the password requirements on the redeem page?
        Thanks!
        Josh

    1. Hey Debajit, I have the same problem as Josh not being able to display the password policy on redeem invitation page. Have you found any information regarding this matter?

  2. Thanks for the article. I have a new installation, and neither the Register tab nor the Redeem Invitation tab are showing. However, my site settings seem correct (Authentication/Registration/InvitationEnabled is true). Even if I set /OpenRegistrationEnabled to true, I do not see a Register tab. Do you know what else might be wrong?

    1. Hi John,
      I have seen some instances behaving like this specially in the SandBox or trials. Is this a sandbox or a trial? I will further check and let you know on this.
      -Debajit

Comments are closed.

Discover more from Debajit's Power Apps & Dynamics 365 Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading