mirror of
https://github.com/bitwarden/server
synced 2025-12-12 14:23:38 +00:00
updated format of import data
This commit is contained in:
@@ -239,8 +239,8 @@ namespace Bit.Api.Controllers
|
||||
}
|
||||
|
||||
var userId = _userService.GetProperUserId(User);
|
||||
await _organizationService.ImportAsync(orgIdGuid, userId.Value, model.Groups.Select(g => g.ToGroup(orgIdGuid)),
|
||||
model.Users.Select(u => u.ToKvp()));
|
||||
await _organizationService.ImportAsync(orgIdGuid, userId.Value, model.Groups.Select(g => g.ToGroupTuple(orgIdGuid)),
|
||||
model.NewUsers.Select(u => u.Email), model.RemoveUsers.Select(u => u.Email));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user