using Zengenti.Contensis.Management;
// Create a client
var client = ManagementClient.Create();
// Get the user
User user = client.Security.Users.Get("t.durden");
// Suspend the user
user.Suspend();
CSHARP
1
2
3
4
5
6
7
8
9
10
using Zengenti.Contensis.Management;
// Create a client
var client = ManagementClient.Create();
// Get the user
User user = client.Security.Users.Get("t.durden");
// Suspend the user asynchronously
await user.SuspendAsync();
CSHARP
1
2
3
4
5
6
7
8
9
10
using Zengenti.Contensis.Management;
// Create a client
var client = ManagementClient.Create();
// Get the user
User user = client.Security.Users.Get("t.durden");
// Unsuspend the user
user.Unsuspend();
CSHARP
1
2
3
4
5
6
7
8
9
10
using Zengenti.Contensis.Management;
// Create a client
var client = ManagementClient.Create();
// Get the user
User user = client.Security.Users.Get("t.durden");
// Unsuspend the user asynchronously
await user.UnsuspendAsync();