-
Create new user from community while logged in as a Community User
I am trying to create a new user from community while logged in as a Community User. The logged in user first enters the list of fields (Like First Name, Last Name, Mobile Phone etc). On Clicking Next, first a contact is created (The newly created Contact is assigned the Account of logged in user and Owner of Account will also be the owner of the newly created Contact).
Next, a user record will be created. The contactId of user will be Id of newly created contact.
However, I am having two issues here:
While assigning AccountId and Account OwnerId, I am having insufficient cross reference id. The logged in user profile has access to the Account fields and read access to the record as well.For creating user, the ProfileId of the new user should be ProfileID of logged in user. But I am not able to pass it because the logged in user doesn't have access to profile Id.Please let me know if I am missing any permissions. The logged in user's license is a Customer Community plus license.
Log In to reply.
Popular Salesforce Blogs

Creating and Populating a Wrapper in Apex
As Apex is a statically typed language, you must choose only one object type per list to iterate. What if you want to iterate an…

How Trailhead Helps People to Learn Salesforce?
Trailhead is Salesforce's free web learning platform committed totally to teach individuals to utilize Salesforce. It provides the user with a guided, learning path with a set of…

Top Salesforce Spring '23 Experience Cloud Features
Salesforce Experience Cloud focuses on accelerating deployment, saving time, fostering great customer engagement, enhancing security, boosting productivity, and fostering collaboration. Let's have a look at…
Popular Salesforce Videos
Crash Course on Apex Triggers Salesforce | Complete Guide with Real Time Scenarios
Complete guide on Apex Triggers Salesforce 0:00 Intro 0:33 Is Triggers difficult to Learn 0:50 What is Trigger? 3:03 What are Trigger events? 11:55 How…
Difference between B2B, B2C and B2B2C Salesforce Commerce Cloud?
There is a lot of buzz about the Salesforce commerce cloud and its effective offerings. Let’s dive deep into the world of Salesforce and the…
Understanding Products & Pricebooks in Salesforce
In this video, Shrey gave detailed information about products and pricebooks You will also learn: 1. How to add and manage Products in Salesforce? 2.…
Popular Salesforce Infographics

The Ultimate Marketing Automation Glossary
Sometimes, it sounds like marketers are speaking another language—especially when using terms associated with specific tools and platforms. It gets even more complicated when certain…

Salesforce Admin Mind Map
As you study for your Salesforce Admin exam and certification, rely on this easy-to-use mind map to make critical connections to the information you need…

How Important Is CRM Today? | An Infographic
CRM or Customer Relationship Management has become unavoidable and imperative in the world of business to reach the desired level of success. It has reached…