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
nusrat khowajanusrat khowaja 

Create a Profile and Permission Set to properly handle field access

Error:
User-added image
I performed all these steps :
First Step is to creat Profile Basic Account User
Setup->Manage Users->Profiles->New Profile->Basic Account User(select any pre-existing profile with user license type"salesforce")
Once you click on Save-> Object Setting-> Account-> Object Permissions-> select Read and Edit
In the Field Permissions deselect  Read and Edit Permissions of Rating Field....
Assign this profile to a user and check 
Next Step to create permission set 
Setup->Manage Users->Permission Sets->New->Account Rating(select user license type"salesforce")
Once you click on Save-> Object Setting-> Account-> Object Permissions-> In the Field Permissions select  Read and Edit Permissions of Rating Field....
 
Best Answer chosen by nusrat khowaja
nusrat khowajanusrat khowaja
here how i did it , hope it works for you too.
Click on Profile>Basic Account User>Object Setting> Account
Object Permissions: check on read only.​

Field Permissions uncheck Account Rating .​
User-added image

Here i am also attaching permission set captured picture .
User-added image

All Answers

Shyama B SShyama B S
Hi Nusrat,
Can you please check the below link
https://developer.salesforce.com/forums/ForumsMain?id=906F0000000BUghIAG
The rating field read and edit permission should be selected only for 'Basic account user' profile and deselected for all the other profiles. You did the opposite. 
nusrat khowajanusrat khowaja
same error message , help me pls
Shyama B SShyama B S
Can you please post a screenshot of your field level security of 'Rating' field page?
Shyama B SShyama B S
I meant the below page:
User-added image
Bonnie RoyalBonnie Royal
I am having the same problem...  I can't see the API name for the Basic Account User Profile so I'm wondering if Trailhead is just having trouble validating it if that didn't actually get set when I created the User Profile.
nusrat khowajanusrat khowaja
here how i did it , hope it works for you too.
Click on Profile>Basic Account User>Object Setting> Account
Object Permissions: check on read only.​

Field Permissions uncheck Account Rating .​
User-added image

Here i am also attaching permission set captured picture .
User-added image
This was selected as the best answer
nusrat khowajanusrat khowaja
 Set Field-Level Security:Rating

Must be unchecked all.​
nusrat khowajanusrat khowaja
User-added image