How to check if account is active ? (API)

I’m trying to check if a specific account is active or not. I know there is the following api call :

curl -v -H "Authorization: Token f2210dacd9c6ccb8133606d94ff8e61d99b477fd" -H 'Accept: application/json; indent=4' https://cloud.seafile.com/api2/accounts/user@mail.com/

Which output :

{
    "is_staff": false,
    "is_active": true,
    "id": 2,
    "create_time": 1356061187741686,
    "usage": 651463187,
    "total": 107374182400,
    "email": "user@mail.com"
}

But I would like to have a direct command without specifying the token.

Hi Vipera7,
the token must be provided. Otherwise everyone could query the system for accounts. This would pose a substanial security risk. This is not a feature request, but a request to make the system less secure.
Ralf

1 Like