/// <summary>
 /// Assigns a directory user or group to a set of folders with an optional set
 /// of roles per folder.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Folders or Folders.Write.
 ///
 /// Required permissions: (Units.Edit - Assigns domain user to any folder) and
 /// (SubFolders.Edit - Assigns domain user only if caller has SubFolders.Edit
 /// permission on all folders provided) and (Users.View and Roles.View).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='assignDomainUserActionParameters'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task AssignDomainUserAsync(this IFolders operations, AssignDomainUserActionParameters assignDomainUserActionParameters = default(AssignDomainUserActionParameters), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     (await operations.AssignDomainUserWithHttpMessagesAsync(assignDomainUserActionParameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Assigns a directory user or group to a set of folders with an optional set
 /// of roles per folder.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Folders or Folders.Write.
 ///
 /// Required permissions: (Units.Edit - Assigns domain user to any folder) and
 /// (SubFolders.Edit - Assigns domain user only if caller has SubFolders.Edit
 /// permission on all folders provided) and (Users.View and Roles.View).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='assignDomainUserActionParameters'>
 /// </param>
 public static void AssignDomainUser(this IFolders operations, AssignDomainUserActionParameters assignDomainUserActionParameters = default(AssignDomainUserActionParameters))
 {
     operations.AssignDomainUserAsync(assignDomainUserActionParameters).GetAwaiter().GetResult();
 }