/// <summary>
 /// Remove user assignment from a folder.
 /// </summary>
 /// <remarks>
 /// Required permissions: (Units.Edit or SubFolders.Edit) and (Users.View).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// key: Id
 /// </param>
 /// <param name='removeUserFromFolderParameters'>
 /// userId - The Id of the user to remove from the folder
 /// </param>
 public static void RemoveUserFromFolderById(this IFolders operations, long id, RemoveUserFromFolderParameters removeUserFromFolderParameters)
 {
     operations.RemoveUserFromFolderByIdAsync(id, removeUserFromFolderParameters).GetAwaiter().GetResult();
 }
Exemple #2
0
 /// <summary>
 /// Remove user assignment from a folder.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Folders or Folders.Write.
 ///
 /// Required permissions: (Units.Edit - Remove user from any folder) and
 /// (SubFolders.Edit - Remove user only if caller has SubFolders.Edit
 /// permission on folder) and (Users.View).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='key'>
 /// </param>
 /// <param name='body'>
 /// userId - The Id of the user to remove from the folder
 /// </param>
 public static void RemoveUserFromFolderById(this IFolders operations, long key, FoldersRemoveUserFromFolderParameters body = default(FoldersRemoveUserFromFolderParameters))
 {
     operations.RemoveUserFromFolderByIdAsync(key, body).GetAwaiter().GetResult();
 }