使用 Azure Active Directory 添加或删除用户Add or delete users using Azure Active Directory

在 Azure Active Directory (Azure AD) 组织中添加新用户或删除现有用户。Add new users or delete existing users from your Azure Active Directory (Azure AD) organization. 只有用户管理员或全局管理员可以添加或删除用户。To add or delete users you must be a User administrator or Global administrator.

添加新用户Add a new user

可使用 Azure Active Directory 门户创建新用户。You can create a new user using the Azure Active Directory portal.

若要添加新用户,请执行以下步骤:To add a new user, follow these steps:

  1. 以组织的用户管理员身份登录到 Azure 门户Sign in to the Azure portal as a User administrator for the organization.

  2. 在任意页面中搜索并选择“Azure Active Directory”。 Search for and select Azure Active Directory from any page.

  3. 依次选择“用户”、“新建用户”。 Select Users, and then select New user.

    通过“用户”(Azure AD 中的“所有用户”)添加用户

  4. 在“用户”页上输入此用户的信息: On the User page, enter information for this user:

    • NameName. 必需。Required. 新用户的名字和姓氏。The first and last name of the new user. 例如,Mary ParkerFor example, Mary Parker.

    • 用户名User name. 必需。Required. 新用户的用户名。The user name of the new user. 例如,mary@contoso.comFor example, mary@contoso.com.

      用户名的域部分必须使用初始默认域名 <yourdomainname>.partner.onmschina.cn,或者使用自定义域名,例如 contoso.com。The domain part of the user name must use either the initial default domain name, <yourdomainname>.partner.onmschina.cn, or a custom domain name, such as contoso.com. 若要详细了解如何创建自定义域名,请参阅使用 Azure Active Directory 门户添加自定义域名For more information about how to create a custom domain name, see Add your custom domain name using the Azure Active Directory portal.

    • Groups. (可选)可以将用户添加到一个或多个现有组。Optionally, you can add the user to one or more existing groups. 也可以在以后将用户添加到组中。You can also add the user to groups at a later time. 有关将用户添加到组的详细信息,请参阅使用 Azure Active Directory 创建基本组并添加成员For more information about adding users to groups, see Create a basic group and add members using Azure Active Directory.

    • 目录角色:如果需要用户的 Azure AD 管理权限,则可以将其添加到 Azure AD 角色。Directory role: If you require Azure AD administrative permissions for the user, you can add them to an Azure AD role. 可以将用户分配为全局管理员,或者分配为 Azure AD 中有限的管理员角色中的一个或多个。You can assign the user to be a Global administrator or one or more of the limited administrator roles in Azure AD. 有关分配角色的详细信息,请参阅如何向用户分配角色For more information about assigning roles, see How to assign roles to users.

    • 工作信息:可在此处添加有关用户的详细信息,或者以后再添加。Job info: You can add more information about the user here, or do it later. 有关添加用户信息的详细信息,请参阅如何添加或更改用户个人资料信息For more information about adding user info, see How to add or change user profile information.

  5. 复制“密码”框中提供的自动生成的密码。 Copy the autogenerated password provided in the Password box. 需将此密码提供给用户,供其在首次登录时使用。You'll need to give this password to the user to sign in for the first time.

  6. 选择“创建” 。Select Create.

随即会创建该用户,并将其添加到 Azure AD 组织中。The user is created and added to your Azure AD organization.

添加新的来宾用户Add a new guest user

还可以通过从“新用户”页中选择“邀请用户”来邀请新的来宾用户与你的组织进行协作。You can also invite new guest user to collaborate with your organization by selecting Invite user from the New user page. 如果组织的外部协作设置已配置为允许你邀请来宾,则会向用户发送电子邮件邀请,用户需要接受邀请才能开始协作。If your organization's external collaboration settings are configured such that you're allowed to invite guests, the user will be emailed an invitation they must accept in order to begin collaborating. 有关邀请 B2B 协作用户的详细信息,请参阅邀请 B2B 用户加入 Azure Active DirectoryFor more information about inviting B2B collaboration users, see Invite B2B users to Azure Active Directory

添加使用者用户Add a consumer user

某些情况下,可能需要在 Azure Active Directory B2C (Azure AD B2C) 目录中手动创建所有者帐户。There might be scenarios in which you want to manually create consumer accounts in your Azure Active Directory B2C (Azure AD B2C) directory.

在混合环境内添加新用户Add a new user within a hybrid environment

如果你的环境中同时包含 Azure Active Directory(云)和 Windows Server Active Directory(本地),则可以通过同步现有用户帐户数据来添加新用户。If you have an environment with both Azure Active Directory (cloud) and Windows Server Active Directory (on-premises), you can add new users by syncing the existing user account data. 有关混合环境和用户的详细信息,请参阅将本地目录与 Azure Active Directory 集成For more information about hybrid environments and users, see Integrate your on-premises directories with Azure Active Directory.

删除用户Delete a user

可使用 Azure Active Directory 门户删除现有用户。You can delete an existing user using Azure Active Directory portal.

若要删除用户,请执行以下步骤:To delete a user, follow these steps:

  1. 使用组织的用户管理员帐户登录到 Azure 门户Sign in to the Azure portal using a User administrator account for the organization.

  2. 在任意页面中搜索并选择“Azure Active Directory”。 Search for and select Azure Active Directory from any page.

  3. 搜索并选择要从 Azure AD 租户中删除的用户。Search for and select the user you want to delete from your Azure AD tenant. 例如,Mary ParkerFor example, Mary Parker.

  4. 选择“删除用户” 。Select Delete user.

    “用户 - 所有用户”页,其中突出显示了“删除用户”

用户将被删除并且不再显示在“用户 - 所有用户”页上。 The user is deleted and no longer appears on the Users - All users page. 可在接下来的 30 天内于“已删除用户”页查看该用户,在此期间可将其还原 。The user can be seen on the Deleted users page for the next 30 days and can be restored during that time. 有关还原用户的详细信息,请参阅使用 Azure Active Directory 还原或永久删除最近删除的用户For more information about restoring a user, see Restore or remove a recently deleted user using Azure Active Directory.

删除某个用户后,该用户使用的任何许可证可供其他用户使用。When a user is deleted, any licenses consumed by the user are made available for other users.

备注

必须使用 Windows Server Active Directory 更新其授权来源为 Windows Server Active Directory 的用户的标识、联系信息或工作信息。You must use Windows Server Active Directory to update the identity, contact information, or job information for users whose source of authority is Windows Server Active Directory. 完成更新后,必须等待下一个同步循环完成,然后才能看到所做的更改。After you complete your update, you must wait for the next synchronization cycle to complete before you'll see the changes.

后续步骤Next steps

添加用户后,可以执行以下基本流程:After you've added your users, you can do the following basic processes:

也可执行其他用户管理任务,例如从其他目录添加来宾用户还原已删除的用户Or you can do other user management tasks, such as adding guest users from another directory or restoring a deleted user. 有关其他可用操作的详细信息,请参阅 Azure Active Directory 用户管理和文档For more information about other available actions, see Azure Active Directory user management documentation.