How to send login details of bulk user created ?

Amul Khanal 0 Reputation points

I am an admin of Microsoft 365 Education of an organization. When I create new user using multiple user or bulk user uploading csv file. How can I send the user login details in their respective mails.

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,311 questions
Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,521 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Navya 6,535 Reputation points Microsoft Vendor

    Hi @Amul Khanal

    Thank you for posting this in Microsoft Q&A.

    I understand you have created bulk users, and you want to send login details to their respective mails.You can use PowerShell to send the user login details in their respective mails with Send-MailMessage command. Below is the sample request

    $sendMailMessageSplat = @{
        From = 'User01 <>'
        To = 'User02 <>', 'User03 <>'
        Subject = 'Sending the Attachment'
        Body = @" 
    Dear $UserName, Welcome to our system! Here are your account details: 
    User name: $UserName Temporary 
    password: $TempPassword 
    Please log in and change your password immediately. Thank you, Your IT Team "@
        SmtpServer = ''
    Send-MailMessage @sendMailMessageSplat

    For your reference:

    Hopes this helps! Do let us know if you have any further queries.



    0 comments No comments

  2. Dillon Silzer 56,121 Reputation points

    Hi Amul,

    If you have already missed out on sending this information (and their temp passwords) I would recommend enabling SSPR in your environment and allowing your users to reset/set their own passwords.

    How it works: Microsoft Entra self-service password reset

    "Microsoft Entra self-service password reset (SSPR) gives users the ability to change or reset their password, with no administrator or help desk involvement. If a user's account is locked or they forget their password, they can follow prompts to unblock themselves and get back to work. This ability reduces help desk calls and loss of productivity when a user can't sign in to their device or an application."

    If this is helpful please accept as answer or upvote.

    Best regards,

    Dillon Silzer, Director | | Cloudaen Computing Solutions

    0 comments No comments