I have created a custom image for Google Cloud Shell, it works well with my user account, but not with other users in the same project. How can I set the image as the default for all users?
Cloud Shell custom image setting is per user. So you will need to update each individual user from the project to use the custom image created by you. You can ask other users from the project to use 'Cloud Shell Environment' UI to update the image setting. Hope that helps!
Related
I'm trying to create my first project in google cloud with organization's administrator account. I have access to the administrator's email and passwords and I am logging in with that account to do so. The problem is that when I click on create new project I receive the following error:
There was an error while loading /home/dashboard?project=proven-now-305315&authuser=1.
You are missing at least one of the following required permissions:
Project
resourcemanager.projects.get
Check that the project ID is valid and you have permissions to access it. Learn more
Send feedback
The detail is that in my resource administration panel I already gave the permission that they ask me to the resource as shown in the following image:
As I have read, the project IAM Admin role should grant the resourcemanager.projects.get role and as you can see in the image the resource rcv # .. which is the administrator has it activated, however I keep trying to create a new project and it doesn't allow me to do it. Any idea?
In case anybody else, like me, reaches this answer, I want to point out that the accepted answer is correct, but for me I had to also make sure that within the settings, I ensured that Project Creation Settings on the right pane and under the section of Cloud Resource Manager Api Settings was set to on. It was turned off by default. Many people on my team overlooked this as it is significantly smaller text.
This may be an option that was not present before or it was turned on by default in the past. For us, it was turned off.
Please refer to the included image for a visual representation of the
settings that need to be turned on.
The problem was for some reason the Google Cloud was disable for all users, I solved following this instructions. Solved with this!
To activate this service, please follow the steps:
Access the admin console and go to Apps -> Additional Google Services
Look for the service “Google Cloud Platform” and click on the box next to it
In to top right corner click in “ON”
Confirm you want to turn it on in the pop-up box.
Google says this
Sign in to your Migrate for Compute Engine Manager with the user apiuser.
Click the System Settings icon. Set the Enable Stackdriver
Monitoring or the Enable Stackdriver Logs options to No.
Source: https://cloud.google.com/migrate/compute-engine/docs/4.9/how-to/monitoring/disabling-stackdriver
How do I login with a user called apiuser? I went to Migrate for Compute Engine Manager but I don't see the System Setting icon either
When you create your migration manager, you have to define a password for apiuser login.
If another person did it, ask them to know the password.
I am using a trial version of Google CLoud. In the command line, I am logged in with a .json key file.
gcloud projects create training_project
returns
ERROR: (gcloud.projects.create) PERMISSION_DENIED: Service accounts cannot create projects without a parent.
But with a trial account, I can neither create an organization nor a folder to serve as a parent. So, how can I make a new project with the command line interface as a trial user?
I have read this question that concerns doing this with a REST API whereas I want to use the command line interface. Furthermore, that question is not about using a trial account.
As shown in the error message (this is also documented here), service accounts are not allowed to create projects outside of an organization and must specify the parent resource when creating a project. There is no workaround for this. Since a trial user cannot create an organization as you mentioned, you won't be able to use a service account to create a project.
Having said that, you can create a project via CLI when logged in as a user instead. You can log in by running:
gcloud auth login
and following the instructions. The gcloud projects create command will then run successfully.
I am ultimately trying to build a custom integration with BIM360 Field to track and monitor field issues generated on a specific project.
Currently in the trial stage I am using Postman to make URI calls, mostly based on Sam Nseir's post Export BIM 360 Project Data via Autodesk Forge
I have everything from that post working correctly, Authentication, Projects list, and was able to extract my Hub Id with a https://developer.api.autodesk.com/project/v1/hubs call.
I am getting hung up trying to determine my Container ID based on this Forge Help Doc. I am only ever able to return a empty Data set "data":[] as shown in the output image below. I have tried adapting the filter logic from the help docs, but end up with the exact same result.
Output Image
I am using an Autodesk sample project, which I am the account admin of, so I don't believe permissions should be an issue. My custom integration has Account admin, and Document management access.
Is anyone aware of any Google API with the user scope (NOT the Admin API in the Directory SDK) that allows you to retrieve the custom employee attributes?
The G+ API seems to skip these
https://developers.google.com/+/web/api/rest/latest/people#resource
Our issue is that we don't want to grant access to the developer console, but rather do this PER-USER. I.E. a user logs into our app and we display to her the custom attributes for her G Suite account, but we do this as her (not as an approved API scope via the dev console).
Leaving this answer for anyone like me who finds this question.
The Directory API allows a user to query the custom attributes for their account even without any admin permissions at all.
https://developers.google.com/admin-sdk/directory/v1/reference/users/get
You need to ensure that projection is set to full and viewType is set to domain_public.
You may need to check the permissions for reading the custom attributes to ensure that a user is allowed to see theirs. We do this in the Google Cloud Directory Sync.