Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

user_group (migration step)

Creates, updates, ensures or deletes a user group, with its name and description in one or more languages.

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/migration-steps/user_group.md

On this page

user_group

Creates, updates, ensures or deletes a user group, with its name and description in one or more languages.

A step of a YAML migration with type: user_group. The class expMigrationStepUserGroup (kernel/classes/migration/steps/expmigrationstepusergroup.php) is registered in settings/migration.ini [StepSettings] StepTypeList[user_group].

Modes

mode: is one of create, update, ensure, delete; every step names one.

Keys

KeyTypeModesDefaultWhat it is
parentidentifier (node)create, ensurethe node of the group the new group is in (create, ensure)
groupidentifier (object)update, deletethe group to update or delete: an object identifier (remote:<remote id>, id, path:)
remote_idstringcreate, ensurethe remote id of a new group; ensure finds the group by it
classidentifier (class)create, ensure"user_group"the class of a new group (default: user_group)
languagestringcreate, update, ensurethe language of name: and description: (default: the default language of content)
namestringcreate, update, ensurethe name of the group
descriptionstringcreate, update, ensurethe description of the group
namesmapcreate, update, ensurelanguage => the name of the group in it: its translations
fieldsmapcreate, update, ensurefurther attributes of the class: attribute identifier => value
missingstring: fail, skipupdate, delete"fail"what happens when the group is not there: fail (the default) or skip
workflowsboolcreate, update, ensurefalsetrue: the workflows of the operation's triggers run, as in the administration (default: they do not)
notifyboolcreate, update, ensurefalsetrue: the publish makes a notification event (default: published without notification)

Besides these, every step takes the keys of the engine: type, mode, if, references, environments, engines and comment (the file format). A key of type identifier names a node, an object or another part of the installation by id, remote id, path or name (identifiers).

Values for references

references: { <name>: <value> } keeps a value of the step's result as ${ref.<name>} for the steps and migrations after it:

ValueWhat it is
object_idthe id of the group's object
node_idthe id of its main node (the parent: of users and groups in it)
remote_idits remote id
nameits name
createdtrue when the step created the group
changedtrue when the step changed it (created, updated or deleted)

Undoing

Some steps of this type undo themselves when their migration is rolled back without down: (the class says which); a migration with any other step of it needs down: or a rollback to its caption.

Caches it touches (cleared after the run): content.

Example

- type: user_group
  mode: ensure
  parent: 5
  remote_id: news-editors
  name: News editors
  names: { ger-DE: Nachrichtenredaktion }
  references: { editors: node_id, editors_object: object_id }

Generated by ./console exp:help:examples from settings/migration.ini, kernel/classes/migration/steps/expmigrationstepusergroup.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x