List users
v1
mail
get
/1/mail_hostings/{mail_hosting_id}/users
Returns a variety of information about one or more users for a given mailbox.
Path parameters
mail_hosting_id
requiredinteger
The unique identifier (ID) of the mail hosting to request.
Examples:17560
Response Body
application/json
resultrequiredstring
Possible values:successerrorasynchronous
Result of the HTTP request
Examples:success
dataWorkspaceUserList
Example request
<?php
use GuzzleHttp\Client;
$client = new Client();
$headers = [
'Authorization' => 'Bearer YOUR-TOKEN-HERE',
'Content-Type' => 'application/json'
];
$request = new Request('GET', 'https://api.infomaniak.com/1/mail_hostings/{mail_hosting_id}/users', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
Example response
application/json
{"result":"success","data":{"users":[{"id":28517,"email":"alicia37@altenwerth.com","name":"example","is_deleted":false,"is_unified":false,"avatar":"example","has_double_auth":false,"mailboxes":[{"mailbox_name":"user","mailbox_idn":"user@êxample.com","permissions":{"can_manage_filters":false,"can_manage_security":false,"can_manage_aliases":false,"can_manage_redirections":true,"can_manage_signatures":true,"can_manage_auto_reply":false,"can_change_password":false,"can_configure_mail_folders":false}}]}]}}