function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
iceberg4uiceberg4u 

Problems with creating partner portal users

I have a requirement that a user with a profile cloned from Partner User should be able to create new users with the same profile.

 I am unable to do this through the Apex Code and get an exception :-

 System.DmlException: Insert failed. First exception on
row 0; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient
access rights on cross-reference id