Skip to content

Assume Impersonation Role

workmail_assume_impersonation_role R Documentation

Assumes an impersonation role for the given WorkMail organization

Description

Assumes an impersonation role for the given WorkMail organization. This method returns an authentication token you can use to make impersonated calls.

Usage

workmail_assume_impersonation_role(OrganizationId, ImpersonationRoleId)

Arguments

OrganizationId

[required] The WorkMail organization under which the impersonation role will be assumed.

ImpersonationRoleId

[required] The impersonation role ID to assume.

Value

A list with the following syntax:

list(
  Token = "string",
  ExpiresIn = 123
)

Request syntax

svc$assume_impersonation_role(
  OrganizationId = "string",
  ImpersonationRoleId = "string"
)