Skip to content

What does the useMasterKey column in the _User class is useful for ? #4669

Closed
@somq

Description

@somq

I know there is a limitation where a given user can't edit any other users than himself (except by using masterkey) for security reasons.

I have a case (which seems trivial in this kind of dev) where I need to edit others users while one of my users is logged in as admin. I bypassed the issue by using a cloud function and checking by-hand if the user has the right role to edit another one.

By default in the _User class there exists a useMasterKey column. I guessed that this column could eventually be set only by using the masterkey and then the user would be able to CRUD on any object and behind the hood it would use the masterkey but it seems I'm wrong.

useMasterKey column

So, could you tell me what does this column is useful for ? Is there any dev planned behind it ? Am I using it the wrong way ?

Thanks in advance for your answers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions