Support

Home Forums Event Espresso Premium Authentication Issue with api – Missing permissions are: ee_read_registrations

Authentication Issue with api – Missing permissions are: ee_read_registrations

Posted: June 8, 2017 at 12:26 pm

Viewing 12 reply threads


Alan Coyne

June 8, 2017 at 12:26 pm

While calling the api ( http://iregister.ie/v2/wp-json/ee/v4.8.36/registrations/27704) using Postman using basic auth , I’m getting an below error –
{“code”:”rest_user_cannot_read”,”message”:”Sorry, you cannot read this registration. Missing permissions are: ee_read_registrations,ee_read_others_registrations”,”data”:{“status”:403}}


Alan Coyne

June 8, 2017 at 12:27 pm

This issue was posted formerly on https://eventespresso.com/topic/authentication-issue-with-api-missing-permissions-are-ee_read_registrations/

But the issue re-generated again


Josh

  • Support Staff

June 8, 2017 at 12:33 pm

Hi Alan,

Are you sending along the username and password using Basic Auth?


Alan Coyne

June 8, 2017 at 12:53 pm

Yes, I am using msyadav.88@gmail.com as username


Josh

  • Support Staff

June 8, 2017 at 1:45 pm

Hi Alan,

Along with the username and password, does the WordPress account associated with that username have the needed capabilities? These include ee_read_registrations.


Alan Coyne

June 10, 2017 at 1:24 pm

I am using the appplication password created from my wordpress profile page.
Which capabilities does the account needs for ee_read_registration or how to check the capabilities?
I want to upload the screenshot but not found any option here to upload file.


Tony

  • Support Staff

June 12, 2017 at 2:39 am

Which capabilities does the account needs for ee_read_registration or how to check the capabilities?

ee_read_registrations is a capability.

Is the user account you are logging into an admin account?

You can use a plugin such as User Role Editor to view/edit the capabilities on an account.

I want to upload the screenshot but not found any option here to upload file.

You need to host the image and post a link here, we have some suggestions for how to upload screenshots here:

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots


Alan Coyne

June 13, 2017 at 12:59 pm


Above are the screenshots of my admin account profile and user role editor.
I have admin account and have the ee_read_registrations capability


Alan Coyne

June 13, 2017 at 1:01 pm

<!– copy and paste. Modify height and width if desired. –>


Alan Coyne

June 13, 2017 at 1:02 pm

<!– copy and paste. Modify height and width if desired. –>
<!– copy and paste. Modify height and width if desired. –>


Josh

  • Support Staff

June 13, 2017 at 2:08 pm

Hi Alan,

I’m afraid the screenshots you posted here do not give us any information we can work with. If you can complete the form on this secure page someone from EE staff can investigate further.


Josh

  • Support Staff

June 14, 2017 at 4:24 pm

Hi Alan,

We were able to get the authentication issue cleared away by adding this to the site’s .htaccess file:

# Begin Custom htaccess
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
# End Custom htaccess

The above code is from the mobile apps troubleshooting wiki, but the same fix applies if it’s a FCGI server when making authenticated calls by other means.


Alan Coyne

June 15, 2017 at 6:29 am

Thanks for your help Josh. Looks good now.

Viewing 12 reply threads

The support post ‘Authentication Issue with api – Missing permissions are: ee_read_registrations’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso