Form Security

Jacob Mallach asked on April 22, 2021 19:22

Hello,

We have approximately 300 forms in our CMS. Is there a way to assign a membership/role to the entirety of them with one fell swoop? As oppossed to manually adding the role to every one individually?

Thanks for the help.

Correct Answer

Brenden Kehren answered on April 23, 2021 14:24

Using the API it should be pretty simple.

  1. Get a list of all your form
  2. Loop through that list.
  3. Set permissions.

Look at the following page in Kentico code to see how they use the API to set permissions.

CMS/CMSModules/BizForms/Tools/BizForm_Edit_Security.aspx.cs

1 votesVote for this answer Unmark Correct answer

Recent Answers


Jacob Mallach answered on April 23, 2021 15:17

Ok - thanks for the feedback. I'm guessing that there is NOT a way todo this through the admin dashboard? Thanks!

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on April 23, 2021 15:22

Through the Admin UI, no. 30 mins of writing some code and your process finishes in 1 min, yes.

0 votesVote for this answer Mark as a Correct answer

Jacob Mallach answered on April 23, 2021 20:10

Yea, sometimes my org is short the resources or has limited access to a dev. Thanks for the feedback Brendan!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.