Here is the problem when calling User.WS getUser(),
('Could not get users for course', '_440370_1')
Server raised fault: '[WSFW004]<b>Access Denied</b><br>Access to this resource is prohibited. (system.user.VIEW)'
We have given this Web Service requestor the following permissions in system role, and he enrolled in course '_440370_1'
Course/Organization Control Panel (Users and Groups) > Users
Administrator Panel (Users) > Users
Administrator Panel (Users) > Users > Edit > View Course Enrollments
system.lmsintegration.admin.VIEW
Administrator Panel (Users) > Users > Search, Not Blank
Administrator Panel (Users) > Users > Edit > View Organization Enrollments
User management by Web Services
Even more strange, it is a hit and miss situation. Sometimes, the program runs without problem, sometimes, it throws the error. We have multiple frontend servers sit behind the load balancer and we are managing hosted.
Thanks,
Look for a cookie which name starts with NSC. Managed hosting's load balancer uses this cookie for sending the client to one app server. You need to send this cookie back on each request to ensure your client connects to the same app on each request. The web services on each app server do not share your client login state.