parse-community/parse-php-sdk

Reading session data

hamzabinamin opened this issue · 2 comments

New Feature / Enhancement Checklist

Current Limitation

I am trying to read session details for particular users using the admin role and user, however even after adding the ACL to read session rows from an authenticated user, I get no results unless I try to fetch the session for the logged in user.

Feature / Enhancement Description

I understand this is a security feature and reading session data for other users can be dangerous but my use case requires to limit the login of a group of users based on how many people are logged in from that group and I can only determine that using their session information.

Any help would be appreciated.

@lacker @hramos @noughts @hipsterjazzbo Could you guys suggest what can be done?

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

You should be able to do this with Cloud Code on the server side using the masterkey.

I'm closing this as it does not seem to be a Parse PHP SDK issue.