4

My requirement is to allow a user with a "Standard User" profile (Salesforce License) to create a community user. To do this I need to give the user "Manage User" permission. But doing this the "View Setup and Configuration" permission also gets activated in the permission set. Because of which this user will me able to make changes to other users as well.

Is there a way in which I can allow this user to create the Community User but not allow him to make changes for other type of users.

2
  • 1
    Don't you just need to grant "Manage External Users" rather than "Manage Users" to allow community user creation?
    – mc110
    Commented Jun 5, 2014 at 12:23
  • 1
    Thanks for the idea. I tried. Works only as long as I don't implement CRUD FLS. Once I do a CRUD FLS check, I am not able to create the Community User Commented Jun 6, 2014 at 9:57

1 Answer 1

1

May be you can try using permission set if that does not work then you can write custom page that will allow user to create new community customer.

Make sure that controller for this page is written without sharing so it will run in System mode and will have full access.

Then allow user with "Standard User" profile to access this page.

3
  • Thanks for the reply AtulRajguru9. Yes I can implement your solution. Another solution I know thats working is to disable CRUD FLS check while creating a new community user. But I believe both these solutions will fail in the salesforce security review. Infact using a controller without using "with sharing" will also show as a security violation in the security scanner report. Commented Jun 5, 2014 at 9:33
  • did you tried permission set? Commented Jun 5, 2014 at 10:04
  • 1
    Yes I have. "Manage User" permission is there is Permission sets itself Commented Jun 6, 2014 at 9:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .