# Delegated Adm: "User Details" view wrong memberships

**URL:** <https://community.auth0.com/t/delegated-adm-user-details-view-wrong-memberships/10329>\
**Category:** Get Help\
**Tags:** delegated-admin, bug\
**Created:** [March 23, 2018, 10:19am UTC](https://community.auth0.com/t/delegated-adm-user-details-view-wrong-memberships/10329 "2018-03-23T10:19:07Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![sefa.ilkimen](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sefa.ilkimen/32/4544_2.png) [@sefa.ilkimen](https://community.auth0.com/u/sefa.ilkimen)\
**Post date:** [April 3, 2018, 3:05pm UTC](https://community.auth0.com/t/delegated-adm-user-details-view-wrong-memberships/10329/4 "2018-04-03T15:05:57Z")

</div>

Hi João,

thanks for your response! I was able to fix this on myself already, but I couldn’t find a way to reply on my own post or editing it. This is what I came up with:

```
// requesting assigned memberships
if (ctx.request.user.email !== ctx.payload.user.email) {
   return callback(null, othersAccessRights);
}

// requesting list of assignable memberships (alias my own memberships)
return callback(null, assignableAccessRights);

```

But I have another problem which is very urgent. Can you please have a look into that issue [Need to query app\_metadata in Delegated Admin Extension](http://community.auth0.com/t/need-to-query-app-metadata-in-delegated-admin-extension/10260)?

Thank you in anticipation!

---

_[View the full topic](https://community.auth0.com/t/delegated-adm-user-details-view-wrong-memberships/10329)._
