Home › Forums › KX Academy › KX Advanced Capstone – Authorization Issue › Re: KX Advanced Capstone – Authorization Issue
-
Hi the issue is related to how you are referencing user, you can use .z.u instead.
To help with testing locally you could:
// define 2 handles for 2 seperate users jmurphyHandle:hopen `::5099:jmurphy:bahrain22 fiaHandle:hopen `::5099:fiauser:getmeallthedata // user name itself is returned using .z.u jmurphyHandle".z.u" fiaHandle".z.u" // can then check if specific users exist in your permissions table and what APIs they are allowed to call jmurphyHandle".perm.users[.z.u]" fiaHandle".perm.users[.z.u][`api]"
You can build up your function bit by bit calling over the handle.
Hope this helps, would recommend the Advanced IPC course for some more practice materials on interacting between multiple processes.