List users for a sub-organization.
print_mail.sub_organizations.retrieve_users(strid, SubOrganizationRetrieveUsersParams**kwargs) -> SubOrganizationRetrieveUsersResponse
GET/print-mail/v1/sub_organizations/{id}/users
List users for a sub-organization.
Parameters
search: Optional[str]
You can supply any string to help narrow down the list of resources. For example, if you pass "New York" (quoted), it will return resources that have that string present somewhere in their response. Alternatively, you can supply a structured search query. See the documentation on StructuredSearchQuery for more details.
List users for a sub-organization.
import os
from postgrid import PostGrid
client = PostGrid(
print_mail_api_key=os.environ.get("POSTGRID_PRINT_MAIL_API_KEY"), # This is the default and can be omitted
)
response = client.print_mail.sub_organizations.retrieve_users(
id="id",
)
print(response)[
{
"id": "user_abc123def456ghi6789",
"pendingInvite": false,
"organization": "org_abc123def456ghi6789",
"email": "[email protected]",
"name": "Calvin",
"verifiedEmail": true,
"roles": [
"role_abc123def456ghi6789"
]
}
]Returns Examples
[
{
"id": "user_abc123def456ghi6789",
"pendingInvite": false,
"organization": "org_abc123def456ghi6789",
"email": "[email protected]",
"name": "Calvin",
"verifiedEmail": true,
"roles": [
"role_abc123def456ghi6789"
]
}
]