Hi,
I have written a little server side script for user.register.post.post_process event that supposedly has to add some extra information that exists in the payload for this particular user in user_custom.
When I execute the /user/register through the API Docs (while logged in as admin) it works without problems. When this gets executed through my mobile application I get the following error in DF's log:
local.ERROR: Exception: GET access to component 'user' of service 'system' is not allowed by this user's role. {"response":"[object] (DreamFactory\Core\Utility\ServiceResponse: {})"}
What I also have done is that I have created a role called openRegistration and I have given access to
Service: System
Component: user/
Access: GET, PATCH
Requester: SCRIPT
and I have assigned this role to User Service to be given to as Default Open Reg Role and it is actually assigned to self registered user but the script is not able to complete.
Any idea why is this happening or in any case how can I store this extra information upon registration?
Thanks,
George