API method returning user_id of Community user #2230

Open
opened 2026-10-05 01:10:29 +02:00 by adam · 0 comments
Owner

In order to allow third party apps to determine whether a Community user can edit the properties of an image or copy/move/delete it, we need an API method retuning the user_id. Today, a solution consists in retrieving the user_id after an upload, which is not a great solution.

I suggest to return user_id with pwg.session.getStatus or to allow pwg.users.getList to return only data related to the Community user.

In order to allow third party apps to determine whether a Community user can edit the properties of an image or copy/move/delete it, we need an API method retuning the `user_id`. Today, a solution consists in retrieving the `user_id` after an upload, which is not a great solution. I suggest to return `user_id` with `pwg.session.getStatus` or to allow `pwg.users.getList` to return only data related to the Community user. <!-- github-sync-id:5159974236 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#2230