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
QinQin 

How to implement multi-org data access restriction with force.com?

I want to create an organization hierarchy and associate users and some custom business objects to this hierarchy.   There should be two data access rules:

  1. A user can see data with their org or any ancestor or descendant orgs.
  2. A user can edit data with their org or any descendant orgs.

  Has anybody tried to support this type of multi-org data access restriction with force.com custom objects, roles hierarchy, and sharing rules support?  If you do, how did you resolved the issues of not able to assign objects to a role?

 

I started on this but encountered a couple roadblocks:

  1.  I cannot find a way to assign a custom object to UserRole.  In the developer edition, when I tried to add a new lookup relationship, UserRole is in the list of objects.   It seems that UserRole should be a standard object.   Is it restricted to user only?
  2. Is there anyway to assign a user to multiple roles?  It seems to be a limitation of force.com,..
Prafulla PatilPrafulla Patil

Please do check if this link content can help you out - Territory Management

QinQin

Thank you Prafulla.  This is definitely helpful for Salesforce.com users.   Are there solutions for force.com users who do not get territory management capabilities?

Prafulla PatilPrafulla Patil

It seems quite impossible at this point of time for Force.com users