# How to make a lobby attribute visible to members only? 

**URL:** <https://forums.unrealengine.com/t/how-to-make-a-lobby-attribute-visible-to-members-only/2858222>\
**Category:** Multiplayer\
**Tags:** epic-online-services, question\
**Created:** [February 12, 2025, 11:46pm UTC](https://forums.unrealengine.com/t/how-to-make-a-lobby-attribute-visible-to-members-only/2858222 "2025-02-12T23:46:55Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [February 12, 2025, 11:46pm UTC](https://forums.unrealengine.com/t/how-to-make-a-lobby-attribute-visible-to-members-only/2858222/1 "2025-02-12T23:46:55Z")

</div>

As title, I want to have a lobby attribute which is visible to all members but not public for searching, etc

---

<div class="post-metadata">

**Author:** ![SebBergy2.0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sebbergy2.0/32/1214708_2.png) [@SebBergy2.0](https://forums.unrealengine.com/u/SebBergy2.0)\
**Post date:** [February 13, 2025, 1:28pm UTC](https://forums.unrealengine.com/t/how-to-make-a-lobby-attribute-visible-to-members-only/2858222/2 "2025-02-13T13:28:40Z")

</div>

You can create a lobby attribute that is private. It won’t show up in search results, but will be visible to all lobby members. You can find this info [here](https://dev.epicgames.com/docs/game-services/lobbies-and-sessions/lobbies/modify-a-lobby#lobby-and-lobby-member-properties).

`Lobby and lobby member attributes have public and private visibilities. In public visibility, data is visible to all members outside of the lobby for lobby attributes, and data is visible inside the lobby for lobby member attributes. Conversely, for private visibility, data is visible inside the lobby for lobby attributes, and data is visible to the member only for lobby member attributes.`

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [February 13, 2025, 8:17pm UTC](https://forums.unrealengine.com/t/how-to-make-a-lobby-attribute-visible-to-members-only/2858222/3 "2025-02-13T20:17:39Z")

</div>

Thanks Seb, Sorry I didn’t provide enough info I think. I’ve tried setting to private, but seems not working. Here’s what I do:

1. A creates lobby and sets attribute:

I’ve noticed that it’s not possible to provide lobby attributes at the time of creation. So first I create lobby with CreateLobby and then create a lobby modification object and finally call LobbyModification\_AddAttribute to add my attribute to the lobby. I use private visibility for my attribute.

2. A sends invite to B

3.- B accepts invite from overlay:

Here in the AddNotifyLobbyInviteAccepted callback, B first does a call to CopyLobbyDetailsHandleByInviteId. Then call CopyAttributeByKey on the details object with the key for my attribute.

Now it returns nothing for my attribute. If I use Public visibitly in step 1 above, then I can retrieive my attribute fine.

First I said this is probably because I’m not a member of lobby yet (when calling CopyLobbyDetailsHandleByInviteId).

So I join the lobby successfully, then call the CopyLobbyDetailsHandle with the lobbyId to obtain the lobbyDetails object, and then call CopyAttributeByKey with my attribute key. But still get nothing if the visibility is private and I’m only able to retrieve my attribute on B side if visibility is public.

---

<div class="post-metadata">

**Author:** ![SebBergy2.0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sebbergy2.0/32/1214708_2.png) [@SebBergy2.0](https://forums.unrealengine.com/u/SebBergy2.0)\
**Post date:** [February 14, 2025, 3:16pm UTC](https://forums.unrealengine.com/t/how-to-make-a-lobby-attribute-visible-to-members-only/2858222/4 "2025-02-14T15:16:20Z")

</div>

Can you try having the lobby owner (A) create the private lobby attribute **after** (B) has joined? (B) should get notified via the callback function set in EOS\_Lobby\_AddNotifyLobbyUpdateReceived that there is a new attribute on the lobby. I’ve never tested this, but I’m suspicious that the LobbyDetails that is locally cached on (B) doesn’t have the private attribute included as it’s the LobbyDetails that was returned in the search before (B) joined.

Just a friendly tip here when using the SDK. “Copy” functions in general retrieve data from a locally cached copy of the object. “Query” functions would retrieve the data from our backend to update the locally cached copy (which can then be retrieved using a “Copy” function). Other than QueryInvites, there’s no query function for lobby data as all the data should be updated automatically on peers via notifications. That said I figured this tip might be useful if you are using other APIs (like achievements, stats, etc…).

I think this is an edge case where the data doesn’t come up because it’s private and the player isn’t a member when the lobby data is first retrieved.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [February 14, 2025, 7:32pm UTC](https://forums.unrealengine.com/t/how-to-make-a-lobby-attribute-visible-to-members-only/2858222/5 "2025-02-14T19:32:39Z")

</div>

\> Can you try having the lobby owner (A) create the private lobby attribute **after** (B) has joined?

This would not work for the flow that I want. I need the attribute that A sets be immediately available upon join.

\> LobbyDetails that is locally cached on (B) doesn’t have the private attribute included as it’s the LobbyDetails that was returned in the search before (B) joined.

I don’t do a search. A creates lobby and sets the attribute. Only then it sends invite to B, so the lobby attribute has already been set before the invite is sent out.

Thanks for the tip about Query vs Copy. So does this mean that the LobbyDetails that I get from CopyLobbyDetailsHandleByInviteId before joining the session is exactly the same LobbyDetails that I get after successful join and calling CopyLobbyDetailsHandle? I thought when we join a lobby the SDK would automatically update the LobbyDetails to the latest version as things might have changed from the time invite was sent till the join happened.

If it’s not the case, how can I force the update of LobbyDetails? thanks

---

<div class="post-metadata">

**Author:** ![SebBergy2.0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sebbergy2.0/32/1214708_2.png) [@SebBergy2.0](https://forums.unrealengine.com/u/SebBergy2.0)\
**Post date:** [February 19, 2025, 2:46pm UTC](https://forums.unrealengine.com/t/how-to-make-a-lobby-attribute-visible-to-members-only/2858222/6 "2025-02-19T14:46:25Z")

</div>

Yes, the LobbyDetailsHandle retrieves the cached data. You can find this information [here](https://dev.epicgames.com/docs/game-services/lobbies-and-sessions/lobbies/get-information-about-a-lobby#work-with-data-while-in-an-active-lobby).

That said, there is an odd behavior here, possibly 2 odd behaviors:

1. Even after joining the lobby, if the owner creates a private attribute, members don’t see it. If you call EOS\_LobbyDetails\_CopyAttribute… EOS\_NotFound is returned. This looks like a bug (unless our documentation is wrong and both private lobby and lobby member attributes can only be seen by the member who created them). I reproduced this using 1.17.
2. I think we could argue that if private lobby attributes are meant to be visible to all lobby members (this is what the documentation currently states), they should be returned from CopyLobbyDetailsHandleByInviteId since the player was invited to the lobby.

I’m going to reach out to our SDK engineering team for some help here. Can you let me know if there is any urgency here? Are you approaching a deadline? Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [February 24, 2025, 11:29pm UTC](https://forums.unrealengine.com/t/how-to-make-a-lobby-attribute-visible-to-members-only/2858222/7 "2025-02-24T23:29:31Z")

</div>

Thanks Seb, ok it’s more complicated that looked initially. We do want to do our release on the end of March. Thanks for following this up!

---

<div class="post-metadata">

**Author:** ![SebBergy2.0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sebbergy2.0/32/1214708_2.png) [@SebBergy2.0](https://forums.unrealengine.com/u/SebBergy2.0)\
**Post date:** [February 25, 2025, 2:03pm UTC](https://forums.unrealengine.com/t/how-to-make-a-lobby-attribute-visible-to-members-only/2858222/8 "2025-02-25T14:03:58Z")

</div>

Thanks for sharing your timeline. Is using a public lobby member attribute an option here? It will be visible to all lobby members, but not to players outside of the lobby.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [February 28, 2025, 9:54pm UTC](https://forums.unrealengine.com/t/how-to-make-a-lobby-attribute-visible-to-members-only/2858222/9 "2025-02-28T21:54:08Z")

</div>

Thanks Seb, yes it might work. The creator of the lobby can set that as it’s own attribute. One question, would that be available when we call CopyLobbyDetailsHandleByInviteId (i.e. before actually joining the lobby)?

---

<div class="post-metadata">

**Author:** ![SebBergy2.0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sebbergy2.0/32/1214708_2.png) [@SebBergy2.0](https://forums.unrealengine.com/u/SebBergy2.0)\
**Post date:** [March 3, 2025, 6:14pm UTC](https://forums.unrealengine.com/t/how-to-make-a-lobby-attribute-visible-to-members-only/2858222/10 "2025-03-03T18:14:21Z")

</div>

No the member attribute would only be visible once the player has joined the lobby.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [March 5, 2025, 5:47pm UTC](https://forums.unrealengine.com/t/how-to-make-a-lobby-attribute-visible-to-members-only/2858222/11 "2025-03-05T17:47:52Z")

</div>

Thanks, that still works for us right now

---

<div class="post-metadata">

**Author:** ![SebBergy2.0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sebbergy2.0/32/1214708_2.png) [@SebBergy2.0](https://forums.unrealengine.com/u/SebBergy2.0)\
**Post date:** [March 17, 2025, 2:01pm UTC](https://forums.unrealengine.com/t/how-to-make-a-lobby-attribute-visible-to-members-only/2858222/12 "2025-03-17T14:01:03Z")

</div>

Hey, sorry for the delay in responding. I spoke with the SDK and backend engineering team. Private attributes, both at the lobby and lobby member levels, are only kept locally on the client and are never sent to our backend. Our documentation was wrong. I worked with the tech writing team to update it, and the correct information is now reflected [here](https://dev.epicgames.com/docs/game-services/lobbies-and-sessions/lobbies/modify-a-lobby#lobby-and-lobby-member-properties). Sorry for the confusion and frustration caused here. Were you able to get your use case working with lobby member attributes?

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [March 17, 2025, 6:49pm UTC](https://forums.unrealengine.com/t/how-to-make-a-lobby-attribute-visible-to-members-only/2858222/13 "2025-03-17T18:49:04Z")

</div>

Thanks for clarification Seb, yes the lobby member attribute should work if it works as you mentioned, but right now we haven’t tested it yet as pulled to other priorites. But I’ll test it soon
