# Get users membership details

**URL:** <https://forum.ghost.org/t/get-users-membership-details/24368>\
**Category:** Memberships & subscriptions\
**Created:** [July 22, 2021, 9:30am UTC](https://forum.ghost.org/t/get-users-membership-details/24368 "2021-07-22T09:30:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![danieldavidraj](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/danieldavidraj/32/14223_2.png) [@danieldavidraj](https://forum.ghost.org/u/danieldavidraj)\
**Post date:** [July 22, 2021, 9:30am UTC](https://forum.ghost.org/t/get-users-membership-details/24368/1 "2021-07-22T09:30:42Z")

</div>

Is there a way to get a user’s membership details like to which plan he has subscribed and his email after login.

---

<div class="post-metadata">

**Author:** ![mattcam](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mattcam/32/5890_2.png) [@mattcam](https://forum.ghost.org/u/mattcam)\
**Post date:** [July 23, 2021, 4:52am UTC](https://forum.ghost.org/t/get-users-membership-details/24368/2 "2021-07-23T04:52:01Z")

</div>

Using the link `https://www.example.com/ghost/#/members` next to the `new member` button there is cog that will allow you to export all members with the following fields.

```auto
id
email
name
note
subscribed_to_emails
complimentary_plan
stripe_customer_id
created_at
deleted_at
labels
products

```

---

<div class="post-metadata">

**Author:** ![danieldavidraj](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/danieldavidraj/32/14223_2.png) [@danieldavidraj](https://forum.ghost.org/u/danieldavidraj)\
**Post date:** [July 23, 2021, 9:49am UTC](https://forum.ghost.org/t/get-users-membership-details/24368/3 "2021-07-23T09:49:34Z")

</div>

can you please tell me how to get this for the current logged in user in ghost code injection

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [July 23, 2021, 4:01pm UTC](https://forum.ghost.org/t/get-users-membership-details/24368/4 "2021-07-23T16:01:33Z")

</div>

Portal gets member information by fetching `{site}/members/api/member/`. If the user is not logged in it will return a 204.
