web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Auto enable mailbox for new created user

(1) ShareShare
ReportReport
Posted on by 41
We are using Microsoft CRM v9 on premises we are looking for way, plugin or whatever to auto enable mailbox for newly created user.
 
currently we approve, test and enable user mailbox manually.
 
any help please ?
 
H.A.O
I have the same question (0)
  • Suggested answer
    Muhammad.Affan Profile Picture
    4,620 Super User 2025 Season 2 on at
    Auto enable mailbox for new created user
    Hi There,
     
    Refer to these link they provide solution to your requirement using power automate flow:
     
     
     
    Thanks
    Affan
    If my suggested answer has helped, please mark it as verified.
  • Suggested answer
    Amit Katariya007 Profile Picture
    10,409 Super User 2025 Season 2 on at
    Auto enable mailbox for new created user
    To automate the enabling of mailboxes for newly created users in Microsoft CRM v9 (on-premises), you can achieve this by creating a plugin or a custom workflow activity. Here's a high-level approach for creating a plugin:
     
    Steps to Auto-enable Mailbox for New Users in CRM:
     
    1. Register a Plugin on User Creation (SystemUser Entity):
     
    Register a plugin that triggers when a new user is created. This would be triggered on the Create event of the SystemUser entity.
     
    2. Retrieve User's Mailbox:
     
    Within the plugin, after the user is created, retrieve the associated mailbox for the user. The Mailbox entity is linked to the SystemUser entity.
     
    3. Update the Mailbox Record:
     
    Update the mailbox record to set the IsApproved, TestEmailConfiguration Scheduled field to true. These field manage the mailbox's status, and enabling them programmatically will simulate what you do manually.
     
    Please refer this article which will help you to implement your requirement.
     
    Thank you,
    Amit Katariya 
  • xcrmadmin@bakertilly.com.kw Profile Picture
    41 on at
    Auto enable mailbox for new created user
    Muhammad.Affan we are using Microsoft CRM on premises, power automate not the right choice here. Thank you
  • xcrmadmin@bakertilly.com.kw Profile Picture
    41 on at
    Auto enable mailbox for new created user
    Amit Katariya007 Thank you for your replay its look like this answer what i was looking for, but its only cover enable mailbox part but not approve mailbox. Also how get retrieve mailbox for newly created user? 
    Thanks alot.

    C# Code 
    CrmServiceClient svc = new CrmServiceClient(ConnectionString);
     
          if (svc.IsReady)
          {
              var mailBox = new Entity("mailbox", new Guid("C88A539A-F493-EC11-B400-000D3A4F37D3"));
     
              // testemailconfigurationscheduled = Indicates if the email configuration test has been scheduled for a mailbox record
              mailBox.Attributes["testemailconfigurationscheduled"] = true;
     
              svc.Update(mailBox);


    in another words how I can doing below point?
    Within the plugin, after the user is created, retrieve the associated mailbox for the user. The Mailbox entity is linked to the SystemUser entity.


    H.A.O
  • Verified answer
    Amit Katariya007 Profile Picture
    10,409 Super User 2025 Season 2 on at
    Auto enable mailbox for new created user
    Sure you can check out below article for the same.
     
    Thank you,
    Amit Katariya
  • xcrmadmin@bakertilly.com.kw Profile Picture
    41 on at
    Auto enable mailbox for new created user
    Amit Katariya007 thank you so much
    finally for "Within the plugin, after the user is created, retrieve the associated mailbox for the user. The Mailbox entity is linked to the SystemUser entity."
    how this accomplished? Amit 
     
  • Suggested answer
    Amit Katariya007 Profile Picture
    10,409 Super User 2025 Season 2 on at
    Auto enable mailbox for new created user
    You can run your plugin on creation of mailbox entity so you don't even have to check on user creation..and then you can just test and enable the mailbox.
  • xcrmadmin@bakertilly.com.kw Profile Picture
    41 on at
    Auto enable mailbox for new created user
    The problem that i cant find mailbox entity in OOB workflow to trigger when its created, so i will use workflow in User entity to trigger when user created then using below C# register workflow to add step to enable user mailbox. for that i dont know how to fetch mailbox for this user.

    you suggested solution to use this plugin on top of mailbox entity without workflow to run once mailbox created but its not my goal and i dont know if this approch will work or not.  Please advice 
  • Suggested answer
    Amit Katariya007 Profile Picture
    10,409 Super User 2025 Season 2 on at
    Auto enable mailbox for new created user
    Like you are 100% sure that mail box will be created once after user record creation? 
     
    If not use plugin and entity as mailbox.
     
    Refer this article from Microsoft.
     
  • xcrmadmin@bakertilly.com.kw Profile Picture
    41 on at
    Auto enable mailbox for new created user
    Amit Katariya007  Yes I Am sure that when new user created his linked Mailbox created Also, This Mailbox waiting for manual approval and enable, so each time we should going to newly created user in Microsoft crm and open mailbox associated to each of them and approve, test and enable. For that create registered workflow as step when user created will be good in this example but the issue i dont know how to fetch the user Mailbox when user created :(

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 124 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 96

#3
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 89

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans