User Permissions
I'm working with your API and I've noticed that individual members only have permission to make requests for their own contact information and the account information. I was wondering:
Is there a way to return the users ID who has logged in rather than the ID of our WA account?
How to we assign more permissions globally as we'd like our members to be able to view and register for events through an app we're building.
Thanks so much.
1. If you access API using contact’s credentials, then you can use /v2/accounts/XXX/contacts/me request to get current user’s information, including his ID.
2. There is no way to give more permissions to contacts/members. However, if you are building web application, which runs in trusted environment, you can make some API requests using API key rather than contact credentials. When you access API with API key, then you have full permissions to events and event registrations.
-
Thomas commented
#1 – Perfect, thank you!
#2 – Makes sense. That's the route I was heading down, didn't know if there was another way.Thanks for getting back!
-
Hi Thomas,
1. If you access API using contact's credentials, then you can use /v2/accounts/XXX/contacts/me request to get current user's information, including his ID.
2. There is no way to give more permissions to contacts/members. However, if you are building web application, which runs in trusted environment, you can make some API requests using API key rather than contact credentials. When you access API with API key, then you have full permissions to events and event registrations.