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
Saravanan @CreationSaravanan @Creation 

Apex sharing reason is not working without 'Modify All'

Hi All,

I have a object called X and I have 2 manager field through trigger code I need to share this record with the two manage with the reson of X_manager .
Its working but if the qbject don't have 'modify all' permission the then its sharing with manager wirh reason manual sharing not with X_manager.

But the code are .Please help me If I missed any permission


Thanks,
Best Answer chosen by Saravanan @Creation
Saravanan @CreationSaravanan @Creation
Its not  possible without 'Modify All Data' permission

All Answers

Saravanan @CreationSaravanan @Creation
Its not  possible without 'Modify All Data' permission
This was selected as the best answer
shiv@SFDCshiv@SFDC
I don't know how you fix this issue because sharing determined by the sharing setting not from the permission setting.
Permission setting : What you can do on object record.
Sharing setting : what you can do with other user records.

Saravanan @CreationSaravanan @Creation
Hi Shiva,

Its administrative permission not the object level and its available for on Salesforce licence profile

Thanks,