How to grant a user role after user set values on 3 fields

Created on 29 August 2022, over 2 years ago
Updated 8 May 2023, over 1 year ago

Problem/Motivation

I need some help building an ECA model with purpose to grant a user role after the user has set values on 3 fields. My fields are a textโ€“list-field, an image and a file.

My bottlenecks:
- What is the matching action to trigger this event?
- How can I combine the necessary conditions, that all these fields are filled.

Furthermore I need a 2nd action that removes the user role if at least one of these fields is without value , e.g. the file has been removed.
I suppose I can build this in the same ECA-model but with separate event flow, right?

I'm thankful for any hint/tutorial about this and assume that this is an interesting usecase for others too.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ’ฌ Support request
Status

Fixed

Version

1.1

Component

Documentation

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany marco.b

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States Katy Jockelson

    I know this is closed, but my issue is relevant to this so just jumping in.
    I am new to ECA and trying to figure out a rule which grants a user role based on certain field values on the user.
    The users come in via a sync from Salesforce. I need to grant the role based on a users being created for the first time or existing users being updated, not just existing users being updated which is what this thread seems to suggest is necessary.

    Is there really no way to grant a role to newly saved users?

    Thanks

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States Katy Jockelson

    I think I found it: Insert content entity - leaving this here for future wonderers

Production build 0.71.5 2024