Skip to content

Put Access Control Rule

workmail_put_access_control_rule R Documentation

Adds a new access control rule for the specified organization

Description

Adds a new access control rule for the specified organization. The rule allows or denies access to the organization for the specified IPv4 addresses, access protocol actions, user IDs and impersonation IDs. Adding a new rule with the same name as an existing rule replaces the older rule.

Usage

workmail_put_access_control_rule(Name, Effect, Description, IpRanges,
  NotIpRanges, Actions, NotActions, UserIds, NotUserIds, OrganizationId,
  ImpersonationRoleIds, NotImpersonationRoleIds)

Arguments

Name

[required] The rule name.

Effect

[required] The rule effect.

Description

[required] The rule description.

IpRanges

IPv4 CIDR ranges to include in the rule.

NotIpRanges

IPv4 CIDR ranges to exclude from the rule.

Actions

Access protocol actions to include in the rule. Valid values include ActiveSync, AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook, and WebMail.

NotActions

Access protocol actions to exclude from the rule. Valid values include ActiveSync, AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook, and WebMail.

UserIds

User IDs to include in the rule.

NotUserIds

User IDs to exclude from the rule.

OrganizationId

[required] The identifier of the organization.

ImpersonationRoleIds

Impersonation role IDs to include in the rule.

NotImpersonationRoleIds

Impersonation role IDs to exclude from the rule.

Value

An empty list.

Request syntax

svc$put_access_control_rule(
  Name = "string",
  Effect = "ALLOW"|"DENY",
  Description = "string",
  IpRanges = list(
    "string"
  ),
  NotIpRanges = list(
    "string"
  ),
  Actions = list(
    "string"
  ),
  NotActions = list(
    "string"
  ),
  UserIds = list(
    "string"
  ),
  NotUserIds = list(
    "string"
  ),
  OrganizationId = "string",
  ImpersonationRoleIds = list(
    "string"
  ),
  NotImpersonationRoleIds = list(
    "string"
  )
)