locked
Need advice on setting user roles. RRS feed

  • Question

  • Can someone advise on the best User Role (Create,Update,Delete etc.) to set for the following scenario:

    I have javascript REST create records that is viewable by users. The records get created based on the user interaction. I don't want users to manually create these New records - but want the javascript in the form to trigger them. What should my user roles be set to?

    Wednesday, November 27, 2013 7:08 PM

All replies

  • Hi,

    A user role won't fix this. For javascript to be able to create the record, the role needs create permission. Your best bet is to do it in a plugin which can be ran as administrator to create the record, then deny create permission on the role.

    I don't believe it is easy to impersonate another user in javascript unless anyone else knows how to

    Chris

    Wednesday, November 27, 2013 8:57 PM
  • Sorry, an alternative would be to hide all create record buttons, but this sin't very nice or manageable.
    Wednesday, November 27, 2013 8:59 PM