Forum Academy Marketplace Showcase Pricing Features

Data Base Privacy

Hi you good folks out there.

I need some help and my question is.

I would like to create a Admin role that have access (read, wright, modify) to all info that users have
put into the app I’ve created.

As of now, users can only read, wright and modify there own inputs, (created by = current user)
but as Admin I need to have access to all user info.

Hopefully someone could help me out here // Joran

There are several other threads about this topic in the forums, worth doing some research.

Anyhow, one simple approach is to add a Yes/No field to the user datatype e.g. isAdmin = yes/no

On the privacy tab, then create a Role Admin, and set the rule current user isAdmin is yes, then set the relevant options. and for the Everyone Else role set them as appropriate.

On the client side (the pages), you can then also check (conditionals on elements) the user isAdmin field and show/hide elements as appropriate. You can also manipulate elements, when a user logs in/out via the workflows and carry out checks against the isAdmin field.

You can also restrict access to pages, on page load workflow, by checking the field.

Thanks for your answer, I try it.

:slight_smile: // Joran

Hi again

I tried it and now it works perfectly, so thank you very much

// Joran