Automating section assignment of users

Created on 31 August 2023, over 1 year ago
Updated 18 September 2023, about 1 year ago

I'm trying to automate section assignments of users on login, based on a user field value, like taxonomy or text field.

It looks like there's a Rule action that allows for Section Assignments to a specific section ID, but I haven't had much luck with that -- I'm guessing it's not meant for user entities?

I've dug around documentation and issue threads, and there doesn't seem to be anything specific to the current version of the module. The documentation references the ability to automate section assignments, but that doesn't seem to be the case anymore.

Has anyone done something similar to what I'm trying to do and could point me in the right direction?

Thanks!

πŸ’¬ Support request
Status

Active

Version

2.0

Component

Documentation

Created by

πŸ‡¨πŸ‡¦Canada delajed

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @delajed
  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    You would need some custom code for this.

  • πŸ‡ΊπŸ‡ΈUnited States agentrickard Georgia (US)

    The most common way to handle this would be in a post-save hook on the user entity. You can find code samples in the tests, where we take access terms and assign them to users.

    See, for instance tests/src/Functional/NodeFormTest.php

Production build 0.71.5 2024