# QueryOwnership returns AccessDenied in stage and dev environment 

**URL:** <https://forums.unrealengine.com/t/queryownership-returns-accessdenied-in-stage-and-dev-environment/2421677>\
**Category:** Game Production\
**Tags:** epic-games-store, question\
**Created:** [March 27, 2025, 2:53pm UTC](https://forums.unrealengine.com/t/queryownership-returns-accessdenied-in-stage-and-dev-environment/2421677 "2025-03-27T14:53:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeriousWahntin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SeriousWahntin](https://forums.unrealengine.com/u/SeriousWahntin)\
**Post date:** [March 27, 2025, 2:53pm UTC](https://forums.unrealengine.com/t/queryownership-returns-accessdenied-in-stage-and-dev-environment/2421677/1 "2025-03-27T14:53:59Z")

</div>

Hi,

I’m currently preparing the release of our first DLC and need to check the ownership from within our game.

When I call the QueryOwnership method of the EOSEcom interface, I receive an AccessDenied reply, when the game is started as Stage or Dev deployment from within Unity.

When I use the Live Deployment (also directly playing in the Unity Editor), it works without problems.

The login seems to be working fine - at least I can create and read leaderboard entries from any deployment.

I’m not sure what could be missing and happy for any input 🙂

Best, Martin

---

<div class="post-metadata">

**Author:** ![SeriousWahntin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SeriousWahntin](https://forums.unrealengine.com/u/SeriousWahntin)\
**Post date:** [April 3, 2025, 8:40pm UTC](https://forums.unrealengine.com/t/queryownership-returns-accessdenied-in-stage-and-dev-environment/2421677/2 "2025-04-03T20:40:54Z")

</div>

Ah, looks like the problem is that I was using the persistent login.  
When I always authenticate newly, it works.  
Is there a way to logout from the persistent login?
