# UserManager method to check access rights to user resources

**URL:** <https://forum.xwiki.org/t/usermanager-method-to-check-access-rights-to-user-resources/18313>\
**Category:** Development\
**Tags:** proposal\
**Created:** [March 17, 2026, 2:30pm UTC](https://forum.xwiki.org/t/usermanager-method-to-check-access-rights-to-user-resources/18313 "2026-03-17T14:30:44Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [March 17, 2026, 5:17pm UTC](https://forum.xwiki.org/t/usermanager-method-to-check-access-rights-to-user-resources/18313/6 "2026-03-17T17:17:02Z")

</div>

> [@pjeanjean](#):
>
> So, for a document store it would be a document and the rights can be mapped 1:1 with `AuthorizationManager`’s. If we had an external LDAP store, this would allow to check if a given user can access a specific record in read/write/delete in the same way.

So basically, if I get it right, this is about verifying if a given user can access another user’s data.

And there’s no notion of it being more fine-grained than that (ie we could imagine that a user could access a user’s first name and last name but not its phone number)?

If I still understand, it seems the idea is to generify the idea of being able to put rights on user profile page in XWiki, and to have a generic api so that it would work for any future user store.

Now a big problem is that in XWiki we can put permissions on a user page so that all members of a group can see it for ex. Since you’re passing `UserReference` and since we don’t have a new API for groups, we don’t know if that’ll work in the future for groups (it would work only if a Group Reference extends a `UserReference`, and that’s doubtful. We quickly discussed it (well, I proposed it and nobody replied) in the past (see [User and Group APIs](https://forum.xwiki.org/t/user-and-group-apis/7715)), and one idea was to have Users and Groups being Actors (i.e. have an ActorReference when you mean a reference to a Group or a User). Nothing was agreed though.

Answering to myself: Regarding the location, `AuthorizationManager` wouldn’t work since right now that API is only for Entities (documents, spaces, wikis, etc), and a `UserReference` is not an Entity in XWiki (maybe it should have been but it’s too late). So indeed, it makes sense to have that API inside the User module. So it could go in `UserManager` or in some new `UserAuthorizationManager` component.

So to conclude the biggest problem for me is the group use case.

Thanks

---

_[View the full topic](https://forum.xwiki.org/t/usermanager-method-to-check-access-rights-to-user-resources/18313)._
