# How to create global storage object from client1 and read it from client2

**URL:** <https://forum.heroiclabs.com/t/how-to-create-global-storage-object-from-client1-and-read-it-from-client2/1648>\
**Category:** Game Design\
**Tags:** authentication\
**Created:** [May 17, 2021, 4:47pm UTC](https://forum.heroiclabs.com/t/how-to-create-global-storage-object-from-client1-and-read-it-from-client2/1648 "2021-05-17T16:47:21Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Jorge](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@Jorge](https://forum.heroiclabs.com/u/Jorge)\
**Post date:** [May 18, 2021, 6:42am UTC](https://forum.heroiclabs.com/t/how-to-create-global-storage-object-from-client1-and-read-it-from-client2/1648/3 "2021-05-18T06:42:43Z")

</div>

Hello @lugehorsam, thanks for your reply!

In my scenario, users do not require to know each other’s ids. In any case, I solved my scenario as described in this topic [How to write/load Global Storage Objects from Client without User Id](https://forum.heroiclabs.com/t/how-to-write-load-global-storage-objects-from-client-without-user-id/1207)

I just replaced ReadStorageObjectsAsync by ListStorageObjectsAsync.

I noticed that a Storage Object is uniquely identified by Collection + Key + User Id, so to read an Storage Object I actually need to know the user id of the owner of the object, but I can list all storage objects of a collection as far as they are configured as public read.

This is how I create the objects:

client.WriteStorageObjectsAsync(session, new WriteStorageObject  
{  
Collection = “active\_matches”,  
Key = match.Id,  
Value = $"{{ “matchid”: “{match.Id}”}}",  
PermissionRead = 2,  
PermissionWrite = 1  
});

This is how I list the objects:

IApiStorageObjectList activeMatchesList = client.ListStorageObjectsAsync(session, “active\_matches”, 10).Result;

---

_[View the full topic](https://forum.heroiclabs.com/t/how-to-create-global-storage-object-from-client1-and-read-it-from-client2/1648)._
