From e22afc4dee2d7d82fd64e661ddc03772c609f937 Mon Sep 17 00:00:00 2001 From: Jared McCannon Date: Wed, 21 Jan 2026 14:50:27 -0600 Subject: [PATCH] figured out the mystery commit. --- .../Controllers/OrganizationUsersController.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Api/AdminConsole/Controllers/OrganizationUsersController.cs b/src/Api/AdminConsole/Controllers/OrganizationUsersController.cs index 447fa01b7e..5bf1362970 100644 --- a/src/Api/AdminConsole/Controllers/OrganizationUsersController.cs +++ b/src/Api/AdminConsole/Controllers/OrganizationUsersController.cs @@ -695,9 +695,17 @@ public class OrganizationUsersController : BaseAdminConsoleController [HttpPut("{id}/restore")] [Authorize] - public async Task RestoreAsync(Guid orgId, Guid id, string defaultUserCollectionName = null) + public async Task RestoreAsync(Guid orgId, Guid id) { - await RestoreOrRevokeUserAsync(orgId, id, (orgUser, userId) => _restoreOrganizationUserCommand.RestoreUserAsync(orgUser, userId, defaultUserCollectionName)); + await RestoreOrRevokeUserAsync(orgId, id, (orgUser, userId) => _restoreOrganizationUserCommand.RestoreUserAsync(orgUser, userId, null)); + } + + + [HttpPut("{id}/restore/vnext")] + [Authorize] + public async Task RestoreAsync(Guid orgId, Guid id, OrganizationUserRestoreRequest request) + { + await RestoreOrRevokeUserAsync(orgId, id, (orgUser, userId) => _restoreOrganizationUserCommand.RestoreUserAsync(orgUser, userId, request.DefaultUserCollectionName)); } [HttpPatch("{id}/restore")]