Sometimes, we may encounter this issue even after rolling back the group policy that was previously set to restrict users’ access via group policy.
To Fix this issue
Trusted installer NT account needs to be added with full control for the net.exe and net1.exe located under C:\windows\system32.
Also, the ownership needs to be given to the trusted installer for net.exe and net1.exe under C:\windows\system32
Additionally, an authenticated user with deny needs to be removed for net.exe and net1.exe under C:\windows\system32

If this were performed for both the net as well as net1 and then when we ran the command net user, we would be able to get the desired output.
