Merge branch 'main' of https://git.azuze.fr/kawa/SharepointToolbox-Web
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
@attribute [Authorize]
|
||||
@inject IUserSessionService Session
|
||||
@inject IGraphUserDirectoryService GraphSvc
|
||||
@inject IAuditService Audit
|
||||
@rendermode InteractiveServer
|
||||
|
||||
<h1 class="page-title">User Directory</h1>
|
||||
@@ -67,6 +68,8 @@
|
||||
{
|
||||
_users = (await GraphSvc.GetUsersAsync(Session.CurrentProfile!, _includeGuests, progress)).ToList();
|
||||
_status = $"Loaded {_users.Count} users.";
|
||||
await Audit.LogAsync("UserDirectoryLoad", Session.CurrentProfile?.Name ?? "", Array.Empty<string>(),
|
||||
$"{_users.Count} users; guests={_includeGuests}");
|
||||
}
|
||||
catch (Exception ex) { _error = ex.Message; }
|
||||
finally { _running = false; await InvokeAsync(StateHasChanged); }
|
||||
|
||||
Reference in New Issue
Block a user