diff --git a/minio/minioadmin.py b/minio/minioadmin.py index 1e8d2b6a..b3b80c7f 100644 --- a/minio/minioadmin.py +++ b/minio/minioadmin.py @@ -53,6 +53,7 @@ @unique class _COMMAND(Enum): """Admin Command enumerations.""" + ACCOUNT_INFO = "accountinfo" ADD_USER = "add-user" USER_INFO = "user-info" LIST_USERS = "list-users" @@ -316,6 +317,14 @@ def info(self) -> str: ) return response.data.decode() + def account_info(self) -> str: + """Get MinIO Account (aka User) information.""" + response = self._url_open( + "GET", + _COMMAND.ACCOUNT_INFO, + ) + return response.data.decode() + def user_add(self, access_key: str, secret_key: str) -> str: """Create user with access and secret keys""" body = json.dumps(