我正在为Salesforce沙箱使用单点登录。我使用Azure AD作为身份验证提供程序。我能够在Azure AD中添加一些用户,并且实际上为我的SF沙箱(对于那些用户)工作了单点登录。问题是我的沙箱有500个用户,我想将它们全部添加到我的Azure AD中。以下是我为测试用户提供单点登录的文档。所以我的下一步/问题是如何在Azure AD中批量uloa我的所有用户信息,以便所有这些用户信息都能单点登录到我的SF沙箱?谢谢
在CSV文件中提供所有用户信息后,您可以使用PowerShell和Import-csv导入所有用户信息。
然后使用New-AzureADUser
命令创建这些用户。像这样的骨架..
foreach($user in import-csv "E:\userinfo.csv")
{
Write-Host "Processing item with.. UserName="$user.DisplayName
# Make use of variables like $user.DisplayName and so on in your commands here..
# New-AzureADUser -DisplayName $user.DisplayName ... and so on..
}
这里有一个非常详细的类似策略脚本:qazxsw poi