POST api/Account/AllowLogon

Allow or deny user to logon into application.

Request Information

URI Parameters

None.

Body Parameters

AllowLogonPost
NameDescriptionTypeAdditional information
UserProviderKey

User id

string

None.

IsApproved

If true the user can logon otherwise cannot

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UserProviderKey": "991274d1-7357-4bf7-9ebd-2740deed7b5d",
  "IsApproved": false
}

application/xml, text/xml

Sample:
<AllowLogonPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts">
  <IsApproved>false</IsApproved>
  <UserProviderKey>991274d1-7357-4bf7-9ebd-2740deed7b5d</UserProviderKey>
</AllowLogonPost>

Response Information

Resource Description

HttpStatusCode 200 OK or 400 BadRequest with Message.

IHttpActionResult

None.