Get password login status
Retrieve information on whether password login is enabled or disabled for an account.
- HTTP Method:
GET
- URL:
https://example.domain.tld/api/v1/auth/password/disable/<username>/
- Require authentication:
Yes
- Permission level required:
MasterAdmin
/ DomainAdmin
/ MailUser
Path parameters
Parameter |
Type |
Description |
Required |
username |
str |
Account username |
Required |
Response parameters
Parameter |
Type |
Description |
password_login |
str |
disabled or enabled |
Example request (Python)
import requests
import json
from pprint import pprint
url = "https://example.domain.tld/api/v1/auth/password/disable/admin/"
r = requests.get(url, auth=("admin","long-auth_token-here"))
try:
pprint(r.json())
except:
print(r.text)
Example response (JSON)
{"password_login" : "enabled"}