-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
permission error while accessing firestore across project #482
Comments
I found a few problems with this issue:
|
Stackoverflow is the right place to for usage questions such as this. Please follow up at https://stackoverflow.com/questions/55077644/google-function-accessing-firestore-database-of-another-project |
Same here. Is there any solution? |
@JeongJun-Lee Maybe this could help you i tried my best to done this. I have done project deployment with single firestore. For Reference My project you can check |
I am in project A and would like to access firestore data in project B.
I have added in Project B IAM, project A's base account (project-a@appspot.gserviceaccount.com) as a service account and assigned it roles of
cloud firestore editor
.The rule set for firestore in project B is:
In my app, when I try to access project B firestore I receive a permission error. The code is:
However, if I create a private key of the firestore of project B and share it with project A it works. Thus, the following works:
What do I need to set in project B to get this working without sharing of the private key? Thanks
The text was updated successfully, but these errors were encountered: