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
Sowjanya Hegde 13Sowjanya Hegde 13 

Chat Transcript Owner Change

I want to change the chat Transcript record owner to the user whose license is not equal to Salesforce. Is it possible ? which are license apart from Salesforce License will have the access to Chat Transcript record ? Please help!
ShivankurShivankur (Salesforce Developers) 
Hi Sowjanya,

You can select a different user as the owner of chat transcript, or assign the transcript to a queue. When assigning transcripts to other users, make sure those users have the “Read” permission on live chat transcripts.

You can query on users as below to filter the users with Salesforce license:
List<User> usersWithSalesforceLicense = [
    Select Id, Name, Profile.UserLicense.Name 
    From User 
    Where Profile.UserLicense.Name = 'Salesforce'
];
Once you have the users queried you can assign the chat transcript according to your business use case via Apex.

Hope above information helps, Please mark as Best Answer so that it can help others in the future.

Thanks.