How to add data into another users blockstack username/id using

Lets assume we have two blockstack id Eg. and

I and my sister are running a provision store. Now I want when I add provision data(Eg. Milk) to my gaia. I want it to be
posted to my sister as well via her blockstack Identity( I guess I need something like input form where I can enter her id as well

With the reactjs code below, I can only add and retrieve provision data for myself only.

I just need to post provision data to her id( or whatever. Any work around will be appreciated.


//To post
const options = { encrypt: false }
userSession.putFile(‘provisionStore.json’, JSON.stringify(provisions), options)

// To get
const options = { decrypt: false }
userSession.getFile(‘provisionStore.json’, options)
.then((file) => {
var provisions = JSON.parse(file || ‘[]’)
person: new Person(userSession.loadUserData().profile),
username: userSession.loadUserData().username,
pIndex: provisions.length,
provisions: provisions,

It looks like the issue was solved on

Thanks for reaching out to me @friedger. the issue is not yet resolved. the link above only resolved how to get users publick key.
My major issue is still unresolved.

Posting and Recieving of the post by the other user not working…

I have gotten the recipient publickey through massive help @dant. and @friedger.

Now my major problem is posting data
to other user via userid in this

below is how I post data to another userid

const mysyster_Publickey ="xxxxxxxxxxxxxxxxxxxx";
const mysister_id ="";

// Post to another block userid(Eg.
userSession.putFile('provision.json', '100 Cartoon of Provision in the Store', { encrypt: mysyster_Publickey, username: mysister_id })

For my sister to get post I sent to her I did this but she is not getting any post.nothing from her end. She can only see what
she posted herself and not what I posted to her

userSession.getFile('provision.json', { decrypt: true});

Any solution will be appreciated.

Here is the sample link at github showing the issue

This post was flagged by the community and is temporarily hidden.

@models-72 This might be something to add here for Mike’s potential grant ideas around Gaia Development of Gaia Technology