loginAs={currentUser} not working ?
1. Objective: I am trying to use Joget's JSON API to fetch data from a datalist in a custom HTML script via AJAX for every logged in user.
2. Documentation Reference: In the Joget documentation [JSON API Authentication#MasterLoginUsernameandPassword], it states that using master credentials along with the `loginAs` variable should enable any logged-in user to access the API.
3. Testing the API:
- I attempted to access the API using different logged-in users, but I encountered an issue.
- I was unable to access the URL when using any logged-in user other than the admin.
4. Successful Attempt: When I used `loginAs=admin`, I was able to access the data without any issues.
5. Conclusion: It seems that the `loginAs` variable only works correctly with the admin account, as other logged-in users cannot access the API.
6. What i need: I need to access the api using every logged user (i can pass the master crededntials)