Skip to content

Commit 2ed6e73

Browse files
authored
Merge pull request #89110 from MicrosoftDocs/master
9/19 AM Publish
2 parents fad368d + 16922c5 commit 2ed6e73

File tree

127 files changed

+1573
-789
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+1573
-789
lines changed
56.8 KB
Loading
17.1 KB
Loading
47 KB
Loading

articles/active-directory/b2b/tutorial-bulk-invite.md

Lines changed: 47 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services: active-directory
77
ms.service: active-directory
88
ms.subservice: B2B
99
ms.topic: tutorial
10-
ms.date: 08/14/2018
10+
ms.date: 9/19/2019
1111

1212
ms.author: mimart
1313
author: msmimart
@@ -19,123 +19,93 @@ ms.reviewer: mal
1919
ms.collection: M365-identity-device-management
2020
---
2121

22-
# Tutorial: Bulk invite Azure AD B2B collaboration users
22+
# Tutorial: Bulk invite Azure AD B2B collaboration users (preview)
2323

24-
If you use Azure Active Directory (Azure AD) B2B collaboration to work with external partners, you can invite multiple guest users to your organization at the same time. In this tutorial, you learn how to use PowerShell to send bulk invitations to external users. Specifically, you do the following:
24+
| |
25+
| --- |
26+
| This article describes a public preview feature of Azure Active Directory. For more information about previews, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).|
27+
| |
28+
29+
30+
If you use Azure Active Directory (Azure AD) B2B collaboration to work with external partners, you can invite multiple guest users to your organization at the same time. In this tutorial, you learn how to use the Azure portal to send bulk invitations to external users. Specifically, you do the following:
2531

2632
> [!div class="checklist"]
27-
> * Prepare a comma-separated value (.csv) file with the user information
28-
> * Run a PowerShell script to send invitations
33+
> * Use **Bulk invite users (Preview)** to prepare a comma-separated value (.csv) file with the user information and invitation preferences
34+
> * Upload the .csv file to Azure AD
2935
> * Verify the users were added to the directory
3036
31-
If you don’t have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
37+
If you don’t have Azure Active Directory, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
3238

3339
## Prerequisites
3440

35-
### Install the latest AzureADPreview module
36-
Make sure that you install the latest version of the Azure AD PowerShell for Graph module (AzureADPreview).
37-
38-
First, check which modules you have installed. Open Windows PowerShell as an elevated user (Run as administrator), and run the following command:
39-
40-
```powershell
41-
Get-Module -ListAvailable AzureAD*
42-
```
43-
44-
Based on the output, do one of the following:
45-
46-
- If no results are returned, run the following command to install the AzureADPreview module:
47-
48-
```powershell
49-
Install-Module AzureADPreview
50-
```
51-
- If only the AzureAD module shows up in the results, run the following commands to install the AzureADPreview module:
52-
53-
```powershell
54-
Uninstall-Module AzureAD
55-
Install-Module AzureADPreview
56-
```
57-
- If only the AzureADPreview module shows up in the results, but you receive a message that indicates there's a later version, run the following commands to update the module:
58-
59-
```powershell
60-
Uninstall-Module AzureADPreview
61-
Install-Module AzureADPreview
62-
```
63-
64-
You may receive a prompt that you're installing the module from an untrusted repository. This occurs if you haven't previously set the PSGallery repository as a trusted repository. Press **Y** to install the module.
65-
66-
### Get test email accounts
67-
6841
You need two or more test email accounts that you can send the invitations to. The accounts must be from outside your organization. You can use any type of account, including social accounts such as gmail.com or outlook.com addresses.
6942

70-
## Prepare the CSV file
43+
## Invite guest users in bulk
7144

72-
In Microsoft Excel, create a CSV file with the list of invitee user names and email addresses. Make sure to include the **Name** and **InvitedUserEmailAddress** column headings.
45+
1. Sign in to the Azure portal with an account that is a User administrator in the organization.
46+
2. In the navigation pane, select **Azure Active Directory**.
47+
3. Under **Manage**, select **Users** > **Bulk invite**.
48+
4. On the **Bulk invite users (Preview)** page, select **Download** to get a valid .csv file with invitation properties.
7349

74-
For example, create a worksheet in the following format:
50+
![Bulk invite download button](media/tutorial-bulk-invite/bulk-invite-button.png)
7551

52+
5. Open the .csv file and add a line for each guest user. Required values are:
7653

77-
![PowerShell output showing pending user acceptance](media/tutorial-bulk-invite/AddUsersExcel.png)
54+
* **Email address to invite** - the user who will receive an invitation
7855

79-
Save the file as **C:\BulkInvite\Invitations.csv**.
56+
* **Redirection url** - the URL to which the invited user is forwarded after accepting the invitation
8057

81-
If you don't have Excel, you can create a CSV file in any text editor, such as Notepad. Separate each value with a comma, and each row with a new line.
58+
![Example of a CSV file with guest users entered](media/tutorial-bulk-invite/bulk-invite-csv.png)
8259

83-
## Sign in to your tenant
60+
> [!NOTE]
61+
> Don't use commas in the **Customized invitation message** because they'll prevent the message from being parsed successfully.
8462
85-
Run the following command to connect to the tenant domain:
63+
6. Save the file.
64+
7. On the **Bulk invite users (Preview)** page, under **Upload your csv file**, browse to the file. When you select the file, validation of the .csv file starts.
65+
8. When the file contents are validated, you’ll see **File uploaded successfully**. If there are errors, you must fix them before you can submit the job.
66+
9. When your file passes validation, select **Submit** to start the Azure bulk operation that adds the invitations.
67+
10. To view the job status, select **Click here to view the status of each operation**. Or, you can select **Bulk operation results (Preview)** in the **Activity** section. For details about each line item within the the bulk operation, select the values under the **# Success**, **# Failure**, or **Total Requests** columns. If failures occurred, the reasons for failure will be listed.
8668

87-
```powershell
88-
Connect-AzureAD -TenantDomain "<Tenant_Domain_Name>"
89-
```
90-
For example, `Connect-AzureAD -TenantDomain "contoso.onmicrosoft.com"`.
69+
![Example of bulk operation results](media/tutorial-bulk-invite/bulk-operation-results.png)
9170

92-
When prompted, enter your credentials.
71+
11. When the job completes, you'll see a notification that the bulk operation succeeded.
9372

94-
## Send bulk invitations
73+
## Verify guest users in the directory
9574

96-
To send the invitations, run the following PowerShell script (where **c:\bulkinvite\invitations.csv** is the path of the CSV file):
75+
Check to see that the guest users you added exist in the directory either in the Azure portal or by using PowerShell.
9776

98-
```powershell
99-
$invitations = import-csv c:\bulkinvite\invitations.csv
100-
101-
$messageInfo = New-Object Microsoft.Open.MSGraph.Model.InvitedUserMessageInfo
102-
103-
$messageInfo.customizedMessageBody = "Hello. You are invited to the Contoso organization."
104-
105-
foreach ($email in $invitations)
106-
{New-AzureADMSInvitation `
107-
-InvitedUserEmailAddress $email.InvitedUserEmailAddress `
108-
-InvitedUserDisplayName $email.Name `
109-
-InviteRedirectUrl https://myapps.microsoft.com `
110-
-InvitedUserMessageInfo $messageInfo `
111-
-SendInvitationMessage $true
112-
}
113-
```
114-
The script sends an invitation to the email addresses in the Invitations.csv file. You should see output similar to the following for each user:
77+
### View guest users in the Azure portal
78+
79+
1. Sign in to the Azure portal with an account that is a User administrator in the organization.
80+
2. In the navigation pane, select **Azure Active Directory**.
81+
3. Under **Manage**, select **Users**.
82+
4. Under **Show**, select **Guest users only** and verify the users you added are listed.
11583

116-
![PowerShell output showing pending user acceptance](media/tutorial-bulk-invite/B2BBulkImport.png)
84+
### View guest users with PowerShell
11785

118-
## Verify users exist in the directory
86+
Run the following command:
11987

120-
To verify that the invited users were added to Azure AD, run the following command:
12188
```powershell
12289
Get-AzureADUser -Filter "UserType eq 'Guest'"
12390
```
91+
12492
You should see the users that you invited listed, with a user principal name (UPN) in the format *emailaddress*#EXT#\@*domain*. For example, *lstokes_fabrikam.com#EXT#\@contoso.onmicrosoft.com*, where contoso.onmicrosoft.com is the organization from which you sent the invitations.
12593

12694
## Clean up resources
12795

128-
When no longer needed, you can delete the test user accounts in the directory. Run the following command to delete a user account:
96+
When no longer needed, you can delete the test user accounts in the directory in the Azure portal on the Users page by selecting the checkbox next to the guest user and then selecting **Delete**.
97+
98+
Or you can run the following PowerShell command to delete a user account:
12999

130100
```powershell
131101
Remove-AzureADUser -ObjectId "<UPN>"
132102
```
133-
For example: `Remove-AzureADUser -ObjectId "lstokes_fabrikam.com#EXT#@contoso.onmicrosoft.com"`
134103

104+
For example: `Remove-AzureADUser -ObjectId "lstokes_fabrikam.com#EXT#@contoso.onmicrosoft.com"`
135105

136106
## Next steps
107+
137108
In this tutorial, you sent bulk invitations to guest users outside of your organization. Next, learn how the invitation redemption process works.
138109

139110
> [!div class="nextstepaction"]
140111
> [Learn about the Azure AD B2B collaboration invitation redemption process](redemption-experience.md)
141-

articles/active-directory/reports-monitoring/troubleshoot-content-pack.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ This article provides you with information about the possible causes and how to
4545
| Cause | How to fix |
4646
| --- | --- |
4747
| Refresh failure errors can be caused when the credentials of the users connecting to the content pack have been reset but not updated in the connection settings of the content pack. | In Power BI, locate the dataset corresponding to the Azure AD activity logs dashboard (**Azure Active Directory Activity logs**), choose schedule refresh, and then enter your Azure AD credentials. |
48-
| A refresh can fail due to large datasets. | Currently, the Azure AD Content pack with Power BI can support only small data sets (less than 500,00 rows) because of some limitations around timeouts in the Power BI Service. If you encounter throttling errors or if the refresh fails due to timeout issues, this might because you are trying to fetch a large dataset. Reduce the time period in the query and try again.|
48+
| A refresh can fail due to large datasets. | Currently, the Azure AD Content pack with Power BI can support only small data sets (less than 500,000 rows) because of some limitations around timeouts in the Power BI Service. If you encounter throttling errors or if the refresh fails due to timeout issues, this might because you are trying to fetch a large dataset. Reduce the time period in the query and try again.|
4949

5050

5151
## Failed to update data source credentials

0 commit comments

Comments
 (0)