11---
22page_title : " Resource: okta_role_subscription"
33description : |-
4- Manages group subscription.
5- This resource allows you to configure subscriptions of a Role with a specific type.
6- Check configure email notifications https://help.okta.com/oie/en-us/Content/Topics/Security/custom-admin-role/administrator-email-settings.htm
7- page regarding what notifications are available for specific admin roles.
4+ Manages email subscription settings for an Okta administrator role notification type.
85---
96
107# Resource: okta_role_subscription
118
12- Manages group subscription.
13-
14- This resource allows you to configure subscriptions of a Role with a specific type.
15- Check [ configure email notifications] ( https://help.okta.com/oie/en-us/Content/Topics/Security/custom-admin-role/administrator-email-settings.htm )
16- page regarding what notifications are available for specific admin roles .
9+ Manages email subscription settings for an Okta administrator role notification type .
10+
11+ This resource allows you to subscribe or unsubscribe an admin role from a specific notification type.
12+ See [ configure email notifications] ( https://help.okta.com/oie/en-us/Content/Topics/Security/custom-admin-role/administrator-email-settings.htm )
13+ for available notifications per admin role .
1714
1815## Example Usage
1916
2017``` terraform
21- resource "okta_role_subscription" "test" {
22- role_type = "SUPER_ADMIN"
23- notification_type = "APP_IMPORT"
24- status = "unsubscribed"
18+ resource "okta_role_subscription" "example" {
19+ role_ref = "SUPER_ADMIN"
20+ notification_type = "OKTA_ANNOUNCEMENT"
2521}
2622```
2723
@@ -30,45 +26,31 @@ resource "okta_role_subscription" "test" {
3026
3127### Required
3228
33- - ` notification_type ` (String) Type of the notification. Valid values:
34- - 'CONNECTOR_AGENT' - Disconnects and reconnects: On-prem provisioning, on-prem MFA agents, and RADIUS server agent.
35- - 'USER_LOCKED_OUT' - User lockouts.
36- - 'APP_IMPORT' - App user import status.
37- - 'LDAP_AGENT' - Disconnects and reconnects: LDAP agent.
38- - 'AD_AGENT' - Disconnects and reconnects: AD agent.
39- - 'OKTA_ANNOUNCEMENT' - Okta release notes and announcements.
40- - 'OKTA_UPDATE' - Scheduled system updates.
41- - 'IWA_AGENT' - Disconnects and reconnects: IWA agent.
42- - 'USER_DEPROVISION' - User deprovisions.
43- - 'REPORT_SUSPICIOUS_ACTIVITY' - User reporting of suspicious activity.
44- - 'RATELIMIT_NOTIFICATION' - Rate limit warning and violation.
45- - 'AGENT_AUTO_UPDATE_NOTIFICATION' - Agent auto-update notifications: AD Agent.
46- - ` role_type ` (String) Type of the role. Valid values:
47- 'API_ADMIN',
48- 'APP_ADMIN',
49- 'CUSTOM',
50- 'GROUP_MEMBERSHIP_ADMIN',
51- 'HELP_DESK_ADMIN',
52- 'MOBILE_ADMIN',
53- 'ORG_ADMIN',
54- 'READ_ONLY_ADMIN',
55- 'REPORT_ADMIN',
56- 'SUPER_ADMIN',
57- 'USER_ADMIN'
58- . See [API docs](https://developer.okta.com/docs/reference/api/admin-notifications/#role-types).
59-
60- ### Optional
61-
62- - ` status ` (String) Subscription status. Valid values: ` subscribed ` , ` unsubscribed ` .
29+ - ` notification_type ` (String) Type of the notification. Valid values:
30+ - `CONNECTOR_AGENT` - Disconnects and reconnects: On-prem provisioning, on-prem MFA agents, and RADIUS server agent.
31+ - `USER_LOCKED_OUT` - User lockouts.
32+ - `APP_IMPORT` - App user import status.
33+ - `LDAP_AGENT` - Disconnects and reconnects: LDAP agent.
34+ - `AD_AGENT` - Disconnects and reconnects: AD agent.
35+ - `OKTA_ANNOUNCEMENT` - Okta release notes and announcements.
36+ - `OKTA_UPDATE` - Scheduled system updates.
37+ - `IWA_AGENT` - Disconnects and reconnects: IWA agent.
38+ - `USER_DEPROVISION` - User deprovisions.
39+ - `REPORT_SUSPICIOUS_ACTIVITY` - User reporting of suspicious activity.
40+ - `RATELIMIT_NOTIFICATION` - Rate limit warning and violation.
41+ - `AGENT_AUTO_UPDATE_NOTIFICATION` - Agent auto-update notifications: AD Agent.
42+ - ` role_ref ` (String) A reference to an existing role. Valid values: ` API_ADMIN ` , ` APP_ADMIN ` , ` CUSTOM ` , ` GROUP_MEMBERSHIP_ADMIN ` , ` HELP_DESK_ADMIN ` , ` MOBILE_ADMIN ` , ` ORG_ADMIN ` , ` READ_ONLY_ADMIN ` , ` REPORT_ADMIN ` , ` SUPER_ADMIN ` , ` USER_ADMIN ` . See [ API docs] ( https://developer.okta.com/docs/reference/api/admin-notifications/#role-types ) .
6343
6444### Read-Only
6545
66- - ` id ` (String) The ID of this resource.
46+ - ` channels ` (List of String) Sources that send notifications to users (e.g., ` ["email"] ` ).
47+ - ` id ` (String) The ID of this resource, in the format ` {role_ref}/{notification_type} ` .
48+ - ` status ` (String) Status of the subscription. Value is ` subscribed ` or ` unsubscribed ` .
6749
6850## Import
6951
7052Import is supported using the following syntax:
7153
7254``` shell
73- terraform import okta_role_subscription.example < role_type > /< notification_type>
55+ terraform import okta_role_subscription.example < role_ref > /< notification_type>
7456```
0 commit comments