By default only the person who joined the computer to Entra is granted local administrator rights. Adding someone as a 'primary user' in Intune admin portal does not grant them local admin access on the workstation. To add someone as local administrator on the machine that is joined to Entra, follow these steps:
net localgroup Administrators UWINAD\{uwinid} /add