Re: How to lock account in UAA using UAA API? #cf


DHR
 

Hi Shilpa,

Did you try sending a PATCH request as per the example you linked, with locked: true ?

Eg

PATCH /Users/0daf6e54-52c5-4360-bd4a-77f5355950b3/status HTTP/1.1
Content-Type: application/json
Authorization: Bearer fe11ae74b429403796ea13c017bff06c
Accept: application/json
Host: localhost
Content-Length: 22

{
  "locked" : true }

On 19 Apr 2018, at 08:13, shilpa kulkarni <shilpakulkarni91@...> wrote:

Hello,
I am using cloud foundry UAA APIs.  I want to lock user account. But in the API documentation,  I am getting only unlock account API. 
Reference link:
http://docs.cloudfoundry.org/api/uaa/version/4.12.0/#unlock-account

Is there any way to lock account in UAA using API.?

Thanks & Regards
Shilpa Kulkarni

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.