How to send login details of bulk user created ?

Amul Khanal 0 Reputation points
2024-06-29T09:10:29.12+00:00

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,222 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,367 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Navya 6,200 Reputation points Microsoft Vendor
    2024-07-01T11:50:09.3733333+00:00

    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 <user01@fabrikam.com>'
        To = 'User02 <user02@fabrikam.com>', 'User03 <user03@fabrikam.com>'
        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 = 'smtp.fabrikam.com'
    }
    Send-MailMessage @sendMailMessageSplat
    
    
    

    For your reference: https://blog.netwrix.com/2017/03/30/create-ad-users-in-bulk-and-email-their-credentials-using-powershell/

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

    Thanks,

    Navya.

    0 comments No comments

  2. Dillon Silzer 55,476 Reputation points
    2024-07-04T06:29:31.54+00:00

    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

    https://video2.skills-academy.com/en-us/entra/identity/authentication/concept-sspr-howitworks

    "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.com | Cloudaen Computing Solutions

    0 comments No comments