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
ViswaViswa 

current Opportunity Owner had access to change the Opportunity Owne

Only the owner can change the ownership of the record
VinayVinay (Salesforce Developers) 
Hi Viswa,

Check below references for changing ownership of the record.

https://help.salesforce.com/articleView?id=000328566&type=1&mode=1
https://help.salesforce.com/articleView?id=account_owner_transfer.htm&type=5
https://help.salesforce.com/articleView?id=000327372&type=1&mode=1

Also kindly elaborate your ask if the issue is different.

Thanks,
ViswaViswa
Hi Vinay,

If the current login user is not the owner of the record, then the user should not be able to change the owner. The user should be able to change the ownership, of the records he owned.