Skip to the documentation
CLI

nextmail members

Every command in this namespace, with its arguments, flags and examples.

Commands

People who share the workspace, their role and the addresses they may use, the invitations still waiting, and directory sync, through which a company directory adds people and takes them out again.

Every command here also takes the global flags, such as --json, --profile and --dry-run. See the global flags

nextmail members list

List everybody with access to the workspace

Scopesmembers:readNeeds a sign-inAliasesls

Usage

nextmail members list [flags]

Resolves one page of the workspace's members, the owner first and the rest by email. Each row carries two axes that a client must not merge: role and permissions say what the person may do, and addresses and domains say what they may do it to, each with its own access. A whole domain reaches every address on it, including ones made later. A send needs both axes, so emails:send with nothing granted sends from nothing.

The one exception is addresses:all. When permissions holds it, the person reaches every address on every domain of the workspace, including ones added later, and sends as any of them when permissions also holds emails:send. addresses and domains still list only the grants made to them directly, which they may have kept from before or been given since, or none at all. Read reach from permissions first, and from those two arrays only when it lacks addresses:all.

The list is a union of people with a membership row and people who only hold address or domain grants and no membership row. The second group comes back with implied: true, role.id null and createdAt null, and their role is inferred from their grants: Member if any grant has access: 'member', Viewer otherwise. Until someone calls update for them, widening their addresses silently widens what they may do.

The workspace owner is the FIRST row, marked isOwner: true, so an unshared workspace returns one member rather than an empty page. They hold every permission by definition, and add, update and remove refuse them with member_is_owner. Exclude isOwner when counting seats.

Add --all to walk every page: a table on a terminal, one JSON object per line when piped or with --ndjson, and one { items, hasMore, nextCursor } document with --json. --max <n> stops after that many items.

Flags

--limit <n>

Page size, from 1 to 100. The server defaults to 25.

Default25
--cursor <value>

The nextCursor of the previous page. Leave it out for the first page.

--q <value>

Narrows to people whose name, email, user id, role, or one of the addresses and domains they were given matches, up to 200 characters. Every word has to appear in one of them, ignoring case and accents, and when nothing matches exactly the search allows for a typo instead.

--all

Fetch every page and stream the items as they arrive.

--max <n>

Stop after this many items. Implies --all.

--ndjson

Print every item as one JSON object per line. Implies --all

Examples

nextmail members list
Walk every page and stop after 100 items
nextmail members list --all --max 100
One JSON object per line when piped
nextmail members list --all > members.ndjson

Also available in

API
GET /members
TypeScript
members.list()
Python
members.list()
Ruby
members.list
PHP
members->list
Go
Members.List
Java
members().list
C#
Members.ListAsync

nextmail members get

Read one member by account id

Scopesmembers:readNeeds a sign-inAliasesshowview

Usage

nextmail members get <user-id> [flags]

Resolves a single member with their role, resolved permissions and address grants. The lookup runs over the same union as list, so a legacy grant holder with no membership row is found here too, with implied: true.

The path takes the account id from list, not an email. An email can change on the account, and a stale one would point at the wrong person. The owner is not a member, so their account id answers 404 like any unknown one.

Arguments

<user-id>Required

The account id from list, not the email address.

Examples

nextmail members get q7Vd3kX9mT2pLw8RzN4bYc6HfJ1sGa5E
Print the raw JSON
nextmail members get q7Vd3kX9mT2pLw8RzN4bYc6HfJ1sGa5E --json

Also available in

API
GET /members/{userId}
TypeScript
members.get()
Python
members.get()
Ruby
members.get
PHP
members->get
Go
Members.Get
Java
members().get
C#
Members.GetAsync

nextmail members add

Invite somebody to the workspace with a role

Scopesmembers:writeNeeds a sign-inAliasesnewcreate

Usage

nextmail members add --email <value> --role-id <value> [flags]
nextmail members add --data <json|@file|-> [flags]

Sends an invitation to join the workspace. Whether or not the address already has an account on Nextmail, the answer is an invitation rather than a member: nobody is put into a workspace without accepting, and this method is held to the same rule as the app.

The invitation carries the role, the addresses and the whole domains you name, and grants exactly those the moment it is accepted. Nothing is granted before that. Calling it again for the same address within ten minutes is refused with 409 invitation_too_soon; after that it refreshes the one outstanding invitation rather than sending a second.

Somebody already in the workspace is refused with 422 member_is_owner. Change what an existing member may do with update, grantAddress and revokeAddress, which only work on people already in.

Role and grants are separate axes. access applies to every id in --address-ids and --domain-ids, and it never widens the role: access: 'member' under a role without emails:send still cannot send. A role holding addresses:all reaches every address without any ids, and no key or access token can invite with one, because none of them holds that console-only permission.

Flags

--email <value>

Who to invite. Trimmed and lowercased. It does not need to have an account yet. Required, here or in --data.

--role-id <value>

Role id from roles.list. The owner role is refused with 409 role_immutable, and a role holding more than the key itself holds is refused with 403 insufficient_authority. That covers every role with a console-only permission in it, such as addresses:all. Required, here or in --data.

--address-ids <a,b>Repeatable

Up to 64 address ids on this workspace the invitation carries, all at access.

--domain-ids <a,b>Repeatable

Up to 64 domain ids on this workspace the invitation carries, all at access. A whole domain covers every address on it, including ones made later.

--access <value>

member reads and sends as the granted addresses, viewer only reads them. Defaults to member.

Default"member"
--data <json|@file|->

The whole body as JSON, inline, from a file with @path, or - for standard input. Flags override its keys.

Examples

The required values only
nextmail members add --email [email protected] --role-id role_8b1f4c2e9a7d3b60e5f1a2c4
With optional flags
nextmail members add --email [email protected] --role-id role_8b1f4c2e9a7d3b60e5f1a2c4 --domain-ids 93542ff8-2baa-4f2f-841d-5ceaa074ab0d --access member
Read the whole body from a JSON file
nextmail members add --data @member.json

Also available in

API
POST /members
TypeScript
members.add()
Python
members.add()
Ruby
members.add
PHP
members->add
Go
Members.Add
Java
members().add
C#
Members.AddAsync

nextmail members update

Change the role a member holds

Scopesmembers:writeNeeds a sign-inAliasesedit

Usage

nextmail members update <user-id> --role-id <value> [flags]
nextmail members update <user-id> --data <json|@file|-> [flags]

Moves a member to a different role and changes nothing else, for somebody ALREADY in the workspace. Their address and domain grants are untouched, and grants cannot be patched here at all: grantAddress and revokeAddress change one grant at a time.

This is also how a legacy grant holder stops being implied. They have address or domain grants and no membership row, this writes one, and from then on implied is false and their permissions come from a role someone chose rather than from what their access implied.

Nobody joins through update. An account that is not in the workspace is 422 member_not_found: invite them with add and they are in once they accept. The owner role cannot be handed out, which is 409 role_immutable, and the workspace owner cannot be given a role, which is 422 member_is_owner.

Arguments

<user-id>Required

The account id from list, not the email address.

Flags

--role-id <value>

Id of the role to move them to. Required, here or in --data.

--data <json|@file|->

The whole patch as JSON, inline, from a file with @path, or - for standard input. Flags override its keys.

Examples

nextmail members update q7Vd3kX9mT2pLw8RzN4bYc6HfJ1sGa5E --role-id role_2c7e9a1f4b8d3e60c5a7f1b9
Read the whole body from a JSON file
nextmail members update q7Vd3kX9mT2pLw8RzN4bYc6HfJ1sGa5E --data @member.json

Also available in

API
PATCH /members/{userId}
TypeScript
members.update()
Python
members.update()
Ruby
members.update
PHP
members->update
Go
Members.Update
Java
members().update
C#
Members.UpdateAsync

nextmail members remove

Remove a member and every address grant they hold

Scopesmembers:writeNeeds a sign-in
Asks you to confirm
Aliasesrmdeldelete

Usage

nextmail members remove <user-id> [flags]

Takes somebody out of the workspace entirely: the membership row and every address grant they hold on it. Removing only the row would drop them from the list while they kept reading the mail, so both go together.

It does not 404 for somebody who is not a member. The people this most needs to reach are legacy grant holders with no membership row, so there is no existence check, and addressesRevoked reports what actually happened. Zero is the honest answer for a no-op.

Their account, their sent mail and anything they wrote are untouched. Only their access to this workspace ends.

Arguments

<user-id>Required

The account id from list, not the email address.

Examples

nextmail members remove q7Vd3kX9mT2pLw8RzN4bYc6HfJ1sGa5E
Skip the confirmation, for scripts
nextmail members remove q7Vd3kX9mT2pLw8RzN4bYc6HfJ1sGa5E --yes

Also available in

API
DELETE /members/{userId}
TypeScript
members.remove()
Python
members.remove()
Ruby
members.remove
PHP
members->remove
Go
Members.Remove
Java
members().remove
C#
Members.RemoveAsync

nextmail members grant-address

Grant a member one address or change their access to it

Scopesmembers:writeNeeds a sign-in

Usage

nextmail members grant-address <user-id> --address-id <value> [flags]
nextmail members grant-address <user-id> --data <json|@file|-> [flags]

Gives one person one address on this workspace, or changes the access they already have to it. It is an upsert: there is one grant per person and address, so posting again with a different access turns a viewer into a member rather than adding a second grant.

This is the address axis and it cannot widen the role. access: 'member' lets somebody send as the address only if their role also holds emails:send, and otherwise it lets them read.

Granting an address to an account with no membership row makes them appear in list as an implied member whose role is inferred from their grants, so call update as well if the role should be a decision. The whole member comes back, which lets a client redraw the row without another read.

Arguments

<user-id>Required

The account id from list, not the email address.

Flags

--address-id <value>

Id of an address on this workspace. Required, here or in --data.

--access <value>

member reads and sends as the address, viewer only reads it. Defaults to member.

Default"member"
--data <json|@file|->

The whole body as JSON, inline, from a file with @path, or - for standard input. Flags override its keys.

Examples

The required values only
nextmail members grant-address q7Vd3kX9mT2pLw8RzN4bYc6HfJ1sGa5E --address-id 4f0c1b6e-2d7a-4a9e-8c35-91b2e7d4f6a0
With optional flags
nextmail members grant-address q7Vd3kX9mT2pLw8RzN4bYc6HfJ1sGa5E --address-id 4f0c1b6e-2d7a-4a9e-8c35-91b2e7d4f6a0 --access viewer
Read the whole body from a JSON file
nextmail members grant-address q7Vd3kX9mT2pLw8RzN4bYc6HfJ1sGa5E --data @member.json

Also available in

API
POST /members/{userId}/addresses
TypeScript
members.grantAddress()
Python
members.grant_address()
Ruby
members.grant_address
PHP
members->grantAddress
Go
Members.GrantAddress
Java
members().grantAddress
C#
Members.GrantAddressAsync

nextmail members revoke-address

Take one address back from a member

Scopesmembers:writeNeeds a sign-in
Asks you to confirm

Usage

nextmail members revoke-address <user-id> <address-id> [flags]

Removes one address grant and leaves the person in the workspace with their role and their other addresses. This is the narrow revocation to use when somebody changes team.

An address id that is not on this workspace is refused with 422 member_not_found rather than ignored, so a typo cannot report a revocation that never happened. An address that is on the workspace but was never granted to this person is a silent no-op, and the member comes back unchanged.

The member is returned rather than a tombstone, because the useful answer is what they can still reach.

Arguments

<user-id>Required

The account id from list, not the email address.

<address-id>Required

Id of an address on this workspace.

Examples

nextmail members revoke-address q7Vd3kX9mT2pLw8RzN4bYc6HfJ1sGa5E 4f0c1b6e-2d7a-4a9e-8c35-91b2e7d4f6a0
Skip the confirmation, for scripts
nextmail members revoke-address q7Vd3kX9mT2pLw8RzN4bYc6HfJ1sGa5E 4f0c1b6e-2d7a-4a9e-8c35-91b2e7d4f6a0 --yes

Also available in

API
DELETE /members/{userId}/addresses/{addressId}
TypeScript
members.revokeAddress()
Python
members.revoke_address()
Ruby
members.revoke_address
PHP
members->revokeAddress
Go
Members.RevokeAddress
Java
members().revokeAddress
C#
Members.RevokeAddressAsync

nextmail members grant-domain

Grant a member a whole domain or change their access to it

Scopesmembers:writeNeeds a sign-in

Usage

nextmail members grant-domain <user-id> --domain-id <value> [flags]
nextmail members grant-domain <user-id> --data <json|@file|-> [flags]

Gives one person every address on one domain of this workspace, including addresses added after the grant, or changes the access they already have to it. It is an upsert: there is one grant per person and domain, so calling it again with a different access turns a viewer into a member rather than adding a second grant.

This is the address axis and it cannot widen the role. access: 'member' lets somebody send from the domain only if their role also holds emails:send, and otherwise it lets them read.

The person has to be in the workspace already, so invite them with add first. The whole member comes back, with the grant in domains.

Arguments

<user-id>Required

The account id from list, not the email address.

Flags

--domain-id <value>

Id of a domain on this workspace, as domains.list returns it. Required, here or in --data.

--access <value>

member reads and sends from the domain, viewer only reads it. Defaults to member.

Default"member"
--data <json|@file|->

The whole body as JSON, inline, from a file with @path, or - for standard input. Flags override its keys.

Examples

The required values only
nextmail members grant-domain q7Vd3kX9mT2pLw8RzN4bYc6HfJ1sGa5E --domain-id 7d2a9c41-5b3e-4f8a-9c06-1e2b3c4d5e6f
With optional flags
nextmail members grant-domain q7Vd3kX9mT2pLw8RzN4bYc6HfJ1sGa5E --domain-id 7d2a9c41-5b3e-4f8a-9c06-1e2b3c4d5e6f --access viewer
Read the whole body from a JSON file
nextmail members grant-domain q7Vd3kX9mT2pLw8RzN4bYc6HfJ1sGa5E --data @member.json

Also available in

API
POST /members/{userId}/domains
TypeScript
members.grantDomain()
Python
members.grant_domain()
Ruby
members.grant_domain
PHP
members->grantDomain
Go
Members.GrantDomain
Java
members().grantDomain
C#
Members.GrantDomainAsync

nextmail members revoke-domain

Take a whole domain back from a member

Scopesmembers:writeNeeds a sign-in
Asks you to confirm

Usage

nextmail members revoke-domain <user-id> <domain-id> [flags]

Removes one domain grant and leaves the person in the workspace with their role and their other grants. Addresses on that domain that were granted to them one by one stay granted.

A domain id that is not on this workspace is refused with 422 member_not_found rather than ignored, so a typo cannot report a revocation that never happened. A domain that is on the workspace but was never granted to this person is a silent no-op, and the member comes back unchanged.

The member is returned rather than a tombstone, because the useful answer is what they can still reach.

Arguments

<user-id>Required

The account id from list, not the email address.

<domain-id>Required

Id of a domain on this workspace.

Examples

nextmail members revoke-domain q7Vd3kX9mT2pLw8RzN4bYc6HfJ1sGa5E 7d2a9c41-5b3e-4f8a-9c06-1e2b3c4d5e6f
Skip the confirmation, for scripts
nextmail members revoke-domain q7Vd3kX9mT2pLw8RzN4bYc6HfJ1sGa5E 7d2a9c41-5b3e-4f8a-9c06-1e2b3c4d5e6f --yes

Also available in

API
DELETE /members/{userId}/domains/{domainId}
TypeScript
members.revokeDomain()
Python
members.revoke_domain()
Ruby
members.revoke_domain
PHP
members->revokeDomain
Go
Members.RevokeDomain
Java
members().revokeDomain
C#
Members.RevokeDomainAsync

nextmail members list-invitations

List the invitations nobody has accepted yet

Scopesmembers:readNeeds a sign-in

Usage

nextmail members list-invitations [flags]

Resolves one page of the invitations to this workspace that are still waiting, by email: the role and the addresses and whole domains each one grants once accepted, when it expires, and whether the last email reached them.

A waiting invitation grants nothing. It becomes access only at the moment somebody accepts it, which is why it is listed apart from list. An expired one stays on the list with expired: true until it is sent again or withdrawn.

Add --all to walk every page: a table on a terminal, one JSON object per line when piped or with --ndjson, and one { items, hasMore, nextCursor } document with --json. --max <n> stops after that many items.

Flags

--limit <n>

Page size, from 1 to 100. The server defaults to 25.

Default25
--cursor <value>

The nextCursor of the previous page. Leave it out for the first page.

--all

Fetch every page and stream the items as they arrive.

--max <n>

Stop after this many items. Implies --all.

--ndjson

Print every item as one JSON object per line. Implies --all

Examples

nextmail members list-invitations
Walk every page and stop after 100 items
nextmail members list-invitations --all --max 100
One JSON object per line when piped
nextmail members list-invitations --all > members.ndjson

Also available in

API
GET /members/invitations
TypeScript
members.listInvitations()
Python
members.list_invitations()
Ruby
members.list_invitations
PHP
members->listInvitations
Go
Members.ListInvitations
Java
members().listInvitations
C#
Members.ListInvitationsAsync

nextmail members revoke-invitation

Withdraw an invitation

Scopesmembers:writeNeeds a sign-in
Asks you to confirm

Usage

nextmail members revoke-invitation <invitation-id> [flags]

Withdraws an invitation nobody has accepted. Its link stops working at once and nothing it would have granted is granted. It is Withdraw on the members screen. Inviting the same address later with add sends a new one.

Arguments

<invitation-id>Required

The invitation id from listInvitations.

Examples

nextmail members revoke-invitation winv_6bb640f5b99e47deb758f1f5
Skip the confirmation, for scripts
nextmail members revoke-invitation winv_6bb640f5b99e47deb758f1f5 --yes

Also available in

API
DELETE /members/invitations/{invitationId}
TypeScript
members.revokeInvitation()
Python
members.revoke_invitation()
Ruby
members.revoke_invitation
PHP
members->revokeInvitation
Go
Members.RevokeInvitation
Java
members().revokeInvitation
C#
Members.RevokeInvitationAsync

nextmail members resend-invitation

Send an invitation again

Scopesmembers:writeNeeds a sign-in

Usage

nextmail members resend-invitation <invitation-id> [flags]

Sends a waiting invitation again: a new link, fourteen more days, and the old link retired, so only the newest email works. It is Send again on the members screen, and it renews an expired invitation too.

Arguments

<invitation-id>Required

The invitation id from listInvitations.

Examples

nextmail members resend-invitation winv_6bb640f5b99e47deb758f1f5
Print the raw JSON
nextmail members resend-invitation winv_6bb640f5b99e47deb758f1f5 --json

Also available in

API
POST /members/invitations/{invitationId}/resend
TypeScript
members.resendInvitation()
Python
members.resend_invitation()
Ruby
members.resend_invitation
PHP
members->resendInvitation
Go
Members.ResendInvitation
Java
members().resendInvitation
C#
Members.ResendInvitationAsync

nextmail members get-directory-sync

Read directory sync

Scopesmembers:readNeeds a sign-in

Usage

nextmail members get-directory-sync [flags]

Resolves where directory sync (SCIM) stands, as the owner sees it on the Privacy tab: whether it is on, whether the plan includes it, the base URL to give the company directory, the last four characters of its token and when the directory last used it, how many people it synced and where each stands, and the groups it synced with the role each gives.

Directory sync lets a company directory, such as Okta or Microsoft Entra, add people to the workspace and take them out again. The directory calls the SCIM endpoints itself with the token connectDirectorySync returns.

Examples

nextmail members get-directory-sync
Print the raw JSON
nextmail members get-directory-sync --json

Also available in

API
GET /directory-sync
TypeScript
members.getDirectorySync()
Python
members.get_directory_sync()
Ruby
members.get_directory_sync
PHP
members->getDirectorySync
Go
Members.GetDirectorySync
Java
members().getDirectorySync
C#
Members.GetDirectorySyncAsync

nextmail members connect-directory-sync

Turn on directory sync

Scopesmembers:writeNeeds a sign-in

Usage

nextmail members connect-directory-sync [flags]

Turns directory sync on and resolves with the token the company directory sends as its bearer token, with status, where directory sync stands now. When it is already on, this makes a new token and the old one stops working at once.

The token is in this answer only and can never be read again, so store it in the directory straight away, with status.baseUrl as the SCIM base URL.

Directory sync comes with the Max and Enterprise plans: on any other plan the call is refused with 403 plan_required, and available on getDirectorySync says which applies.

Examples

nextmail members connect-directory-sync
Print the raw JSON
nextmail members connect-directory-sync --json

Also available in

API
POST /directory-sync
TypeScript
members.connectDirectorySync()
Python
members.connect_directory_sync()
Ruby
members.connect_directory_sync
PHP
members->connectDirectorySync
Go
Members.ConnectDirectorySync
Java
members().connectDirectorySync
C#
Members.ConnectDirectorySyncAsync

nextmail members disconnect-directory-sync

Turn off directory sync

Scopesmembers:writeNeeds a sign-in
Asks you to confirm

Usage

nextmail members disconnect-directory-sync [flags]

Turns directory sync off. Its token stops working at once and the people and groups it synced are forgotten, while everyone who already joined stays a member with the role they hold. Turning it off when it is off changes nothing, and disconnected is then false.

Examples

nextmail members disconnect-directory-sync
Skip the confirmation, for scripts
nextmail members disconnect-directory-sync --yes

Also available in

API
DELETE /directory-sync
TypeScript
members.disconnectDirectorySync()
Python
members.disconnect_directory_sync()
Ruby
members.disconnect_directory_sync
PHP
members->disconnectDirectorySync
Go
Members.DisconnectDirectorySync
Java
members().disconnectDirectorySync
C#
Members.DisconnectDirectorySyncAsync

nextmail members list-directory-people

List the people the directory synced

Scopesmembers:readNeeds a sign-in

Usage

nextmail members list-directory-people [flags]

Resolves one page of the people the company directory synced into the workspace, in the order it sent them, with where each stands: member once they joined, invited while an invitation waits, waiting before one is sent, and inactive when the directory switched them off.

Pages are counted from 1, as SCIM pages are: pass --start-index plus the number of people returned for the next page, while that is at most total.

Flags

--start-index <n>

Where the page starts, counted from 1. Leave it out for the first page.

--count <n>

How many people to return, from 1 to 100. Leave it out for 100.

Examples

nextmail members list-directory-people
With optional flags
nextmail members list-directory-people --count 100
Print the raw JSON
nextmail members list-directory-people --json

Also available in

API
GET /directory-sync/people
TypeScript
members.listDirectoryPeople()
Python
members.list_directory_people()
Ruby
members.list_directory_people
PHP
members->listDirectoryPeople
Go
Members.ListDirectoryPeople
Java
members().listDirectoryPeople
C#
Members.ListDirectoryPeopleAsync

nextmail members set-directory-default-role

Choose the default role of directory sync

Scopesmembers:writeNeeds a sign-in

Usage

nextmail members set-directory-default-role <role-id> [flags]

Chooses the role directory sync gives somebody that none of their groups gives a role, and resolves with where directory sync stands now. null goes back to the built-in Member role.

The owner role cannot be given out this way, which is 422 invalid_parameter on roleId, and a role that is not in the workspace is 422 role_not_found. Anybody but the owner can only give a role that holds nothing they lack themselves, or the call is refused with 403 insufficient_authority. While directory sync is off the call is 409 directory_sync_not_connected.

Arguments

<role-id>Required

The id of a role in this workspace, as roles.list returns it, or null for the built-in Member role.

Examples

nextmail members set-directory-default-role role_2c7e9a1f4b8d3e60c5a7f1b9
Print the raw JSON
nextmail members set-directory-default-role role_2c7e9a1f4b8d3e60c5a7f1b9 --json

Also available in

API
PUT /directory-sync/default-role
TypeScript
members.setDirectoryDefaultRole()
Python
members.set_directory_default_role()
Ruby
members.set_directory_default_role
PHP
members->setDirectoryDefaultRole
Go
Members.SetDirectoryDefaultRole
Java
members().setDirectoryDefaultRole
C#
Members.SetDirectoryDefaultRoleAsync

nextmail members set-directory-group-role

Choose the role of a directory group

Scopesmembers:writeNeeds a sign-in

Usage

nextmail members set-directory-group-role <group-id> <role-id> [flags]

Chooses the role a group the company directory synced gives its people, moves everyone in it to that role now, and resolves with where directory sync stands. null stops the group giving a role, so its people fall back to the default role setDirectoryDefaultRole chose.

The same rules about roles apply as for the default role: the owner role cannot be given out (422 invalid_parameter), a role that is not in the workspace is 422 role_not_found, and anybody but the owner can only give a role that holds nothing they lack themselves (403 insufficient_authority). A group that is not in the workspace is a 404, and while directory sync is off the call is 409 directory_sync_not_connected.

Arguments

<group-id>Required

A group the directory synced, as getDirectorySync lists it in groups.

<role-id>Required

The id of a role in this workspace, as roles.list returns it, or null to give no role from this group.

Examples

nextmail members set-directory-group-role group_4c1b257a role_2c7e9a1f4b8d3e60c5a7f1b9
Print the raw JSON
nextmail members set-directory-group-role group_4c1b257a role_2c7e9a1f4b8d3e60c5a7f1b9 --json

Also available in

API
PUT /directory-sync/groups/{groupId}/role
TypeScript
members.setDirectoryGroupRole()
Python
members.set_directory_group_role()
Ruby
members.set_directory_group_role
PHP
members->setDirectoryGroupRole
Go
Members.SetDirectoryGroupRole
Java
members().setDirectoryGroupRole
C#
Members.SetDirectoryGroupRoleAsync