← Back to plugin index

SMS Event Subscriber (Adminapp)

Description
An event subscriber that sends an SMS to notify a user.
Type name
AdminappSmsEventSubscriber
Class
com.airlock.iam.admin.application.configuration.event.AdminappSmsEventSubscriberConfig
May be used by
Properties
SMS settings (smsSettings)
Description
Settings to send a SMS to the notified user.
Attributes
Plugin-Link
Mandatory
Assignable plugins
Phone Number Providers (phoneNumberProviders)
Description
Provides the phone numbers to which the notification will be sent.
Attributes
Plugin-List
Mandatory
Assignable plugins
Message Resource Key (messageResourceKey)
Description
The resource key under which the localized template for the sms message can be found. The following syntax can be used to include data in the template.
  • ${contextDataName} for the value of contextDataName in the context-data of the managed user.
  • ${event.createdAt,date,format} for the date/time at which the event was created, where "format" is a date pattern like "yyyy-MM-dd HH:mm:ss".
Depending on the event and on the conditions in which the event originated, the following variables may also be available:
  • event.createdAt
  • event.data.addedRoles (list of strings)
  • event.data.airlock2FAAccountId
  • event.data.airlock2FADeviceId
  • event.data.activeAuthenticationMethod
  • event.data.contextDataChanged.%s.newValue (where "%s" is replaced by the context-data field name).
  • event.data.contextDataChanged.%s.oldValue (where "%s" is replaced by the context-data field name).
  • event.data.crontoDeviceId
  • event.data.delegation.newPermissions (list of strings)
  • event.data.delegation.oldPermissions (list of strings)
  • event.data.delegation.permissions (list of strings)
  • event.data.delegation.realm
  • event.data.delegation.role
  • event.data.fidoCredentialId
  • event.data.lockReason
  • event.data.mtanNewPhoneNumber
  • event.data.mtanNumberId
  • event.data.mtanOldPhoneNumber
  • event.data.newEmailAddress
  • event.data.newRealm
  • event.data.newRoles (list of strings)
  • event.data.oldEmailAddress
  • event.data.oldRealm
  • event.data.oldRoles (list of strings)
  • event.data.previousAuthenticationMethod
  • event.data.removedRoles (list of strings)
  • event.data.userId
  • event.id
  • event.metadata.requestIp
  • event.metadata.userAgent
  • event.source.adminId
Variables that are not defined are replaced by an empty string. The Airlock IAM documentation provides further information about the availability of specific variables.
Attributes
String
Optional
Default value
sms.notification.message
Language Context Data Name (languageContextDataName)
Description
The context data field whose value is to be used as the recipient's message language. If the provided value is blank or invalid, the default language will be used.
Attributes
Plugin-Link
Mandatory
Assignable plugins
Default Language (defaultLanguage)
Description
The default language code used when no (or no valid) information about the current language is present. The code must resolve to a locale that's available on the server. Use a lowercase ISO-639 two-letter language code, optionally followed by "_" and an uppercase ISO-3166 two-letter country code.
Attributes
String
Optional
Default value
de
Suggested values
de, fr, en, en_GB, de_CH
YAML Template (with default values)

type: AdminappSmsEventSubscriber
id: AdminappSmsEventSubscriber-xxxxxx
displayName: 
comment: 
properties:
  defaultLanguage: de
  event:
  languageContextDataName:
  messageResourceKey: sms.notification.message
  phoneNumberProviders:
  smsSettings: