Esempio n. 1
0
 /// <summary>
 /// Imports from AD all users from the given group and associates them with
 /// given roles.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Users or Users.Write.
 ///
 /// Required permissions: Users.Create.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// &lt;para /&gt;Group - The name of the AD group whose users are to be
 /// imported.
 /// &lt;para /&gt;RolesList - The collection of roles the imported users will
 /// be associated with.
 /// &lt;para /&gt;OrganizationUnitIds - The collection of ids of the
 /// organization units the imported users will be associated with.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task ImportUsersAsync(this IUsers operations, UsersImportUsersParameters body = default(UsersImportUsersParameters), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.ImportUsersWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Esempio n. 2
0
 /// <summary>
 /// Imports from AD all users from the given group and associates them with
 /// given roles.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Users or Users.Write.
 ///
 /// Required permissions: Users.Create.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// &lt;para /&gt;Group - The name of the AD group whose users are to be
 /// imported.
 /// &lt;para /&gt;RolesList - The collection of roles the imported users will
 /// be associated with.
 /// &lt;para /&gt;OrganizationUnitIds - The collection of ids of the
 /// organization units the imported users will be associated with.
 /// </param>
 public static void ImportUsers(this IUsers operations, UsersImportUsersParameters body = default(UsersImportUsersParameters))
 {
     operations.ImportUsersAsync(body).GetAwaiter().GetResult();
 }