Loading...

Description

Locks a user's account preventing them from being able to login.


Request URL

POST   https://api.3seventy.com/api/v2.1/account/{accountId}/user/{username}/lock

Request Properties

Parameter Description Mandatory
accountId The ID of the account the user belongs to. Yes
userName The user's login name. Yes

C#
PHP


using System;
using System.Collections.Generic;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Models;

public class Program
{

private static void Main(string[] args)
{

const int accountId = 4662;

const string userName = "XXXX";

var context = new T70Context();

context.UserLock(accountId,userName);

}

}

 

Stay tuned for JAVA code snippet
Stay tuned for RUBY code snippet
Stay tuned for PHP code snippet