{"id":8163,"date":"2026-09-23T09:08:05","date_gmt":"2026-09-23T09:08:05","guid":{"rendered":"https:\/\/prwatech.in\/blog\/?p=8163"},"modified":"2026-09-24T15:01:54","modified_gmt":"2026-09-24T15:01:54","slug":"gcp-service-account","status":"publish","type":"post","link":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/","title":{"rendered":"GCP Service Account"},"content":{"rendered":"\r\n<h1>Introduction to Service Accounts<\/h1>\r\n<p>A service account is an identity for something that is not a person, an application, a virtual machine, or a script that needs to call Google Cloud APIs on its own. Where your own Google account represents you logging in, a service account represents a piece of software acting under its own set of permissions, separate from any individual user. This walks through creating one, assigning it a role, and either disabling or deleting it when it is no longer needed.<\/p>\r\n<h2>Step by Step Process of Creating a Service Account in GCP<\/h2>\r\n<h3>Step One: Open Service Accounts<\/h3>\r\n<p>Open the console, then<\/p>\r\n\r\n\r\n\r\n<p>Open Menu &gt; IAM &amp; Admin &gt; Service Accounts<\/p>\r\n\r\n\r\n\r\n<p>Click on Create Service Account.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8164\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-15.jpg\" alt=\"\" width=\"507\" height=\"206\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-15.jpg 1023w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-15-300x123.jpg 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-15-768x314.jpg 768w\" sizes=\"auto, (max-width: 507px) 100vw, 507px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<h3>Step Two: Name and Describe It<\/h3>\r\n<p>Give it a name, a service account ID will be generated automatically, and add a description if you want one. Click Create.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8165\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/2-14.jpg\" alt=\"\" width=\"503\" height=\"371\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/2-14.jpg 705w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/2-14-300x222.jpg 300w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<h3>Step Three: Grant a Role<\/h3>\r\n<p>Give the service account an access role, then click Done.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8166\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/3-13.jpg\" alt=\"\" width=\"400\" height=\"357\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/3-13.jpg 678w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/3-13-300x268.jpg 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<h3>Step Four: Confirm Creation<\/h3>\r\n<p>The service account is created.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8167\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/4-11-1024x406.jpg\" alt=\"\" width=\"653\" height=\"258\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/4-11-1024x406.jpg 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/4-11-300x119.jpg 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/4-11-768x305.jpg 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/4-11.jpg 1121w\" sizes=\"auto, (max-width: 653px) 100vw, 653px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<h2>Avoid Downloadable Service Account Keys Whenever You Can<\/h2>\r\n<p>A service account key is a downloadable file containing a credential that lets whoever has it authenticate as that service account, with no time limit unless you set one and no built in link to any specific machine. If that file ends up in the wrong place, a public code repository, a laptop that gets lost, an email attachment, whoever finds it has exactly the same access the service account does, for as long as the key stays valid. This is a well known, common source of real cloud security incidents.<\/p>\r\n<p>Google&#8217;s current recommendation is to avoid creating a key at all whenever there is another option. In most common situations there is one. A service account attached directly to a resource, such as a Compute Engine VM or a Cloud Function, can use that resource&#8217;s identity automatically without any key file existing anywhere. For workloads running outside Google Cloud entirely, Workload Identity Federation lets an external system authenticate using short lived tokens instead of a long lived key. Reach for a downloadable key only when neither of these genuinely fits your situation.<\/p>\r\n<h3>Step Five: Select a Service Account to Remove<\/h3>\r\n<p>Tick the checkbox next to the service account you want to remove, then click Delete.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8168\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/5-8.jpg\" alt=\"\" width=\"475\" height=\"348\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/5-8.jpg 708w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/5-8-300x220.jpg 300w\" sizes=\"auto, (max-width: 475px) 100vw, 475px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<h3>Step Six: Disable or Delete<\/h3>\r\n<p>Choose Disable or Delete.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8169\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/6-8.jpg\" alt=\"\" width=\"511\" height=\"315\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/6-8.jpg 682w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/6-8-300x186.jpg 300w\" sizes=\"auto, (max-width: 511px) 100vw, 511px\" \/><\/figure>\r\n<\/div>\r\n<h2>Disable Versus Delete: Which to Choose<\/h2>\r\n<p>Disabling is reversible. The service account stops being able to authenticate immediately, but it still exists and can be re-enabled later if you decide you need it after all, which makes it the safer choice whenever you are not completely certain the account is no longer needed anywhere. Deleting is permanent. If anything you have forgotten about still depends on that identity, deleting it will break that thing immediately, and a deleted service account&#8217;s exact email address generally cannot be reused for a new one for some time afterward. When in doubt, disable first, confirm nothing breaks, and delete later once you are sure.<\/p>\r\n<h2>Common Mistakes to Avoid<\/h2>\r\n<ul>\r\n<li>Creating a downloadable key as the default way to authenticate. Check whether attaching the service account directly to the resource, or using Workload Identity Federation, would work instead.<\/li>\r\n<li>Deleting a service account immediately instead of disabling it first. If something you forgot about was using it, disabling gives you a way back, deleting does not.<\/li>\r\n<li>Granting a broad role to a service account out of convenience. Give it only the access whatever is using it actually needs.<\/li>\r\n<\/ul>\r\n<p>That covers creating a service account, assigning it a role, and the security choice that matters more than anything else covered here. To go further, explore <a href=\"https:\/\/prwatech.in\/gcp-training-institutes-in-bangalore\/\"><strong><b>Prwatech&#8217;s Google Cloud training<\/b><\/strong>\u00a0program<\/a>, which includes placement assistance.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Introduction to Service Accounts A service account is an identity for something that is not a person, an application, a virtual machine, or a script that needs to call Google Cloud APIs on its own. Where your own Google account represents you logging in, a service account represents a piece of software acting under its [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,1633],"tags":[605,699,700,986,683,684,685,611,987],"class_list":["post-8163","post","type-post","status-publish","format-standard","hentry","category-google-cloud-platform","category-iam","tag-gcp","tag-gcp-certification","tag-gcp-cloud-console","tag-gcp-service-account","tag-google-cloud-certification","tag-google-cloud-console","tag-google-cloud-courses","tag-google-cloud-platform","tag-service-account-in-gcp"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>GCP Service Accounts: Setup and the Security Rule to Know<\/title>\n<meta name=\"description\" content=\"Create, assign, and remove a Google Cloud service account, plus the security guidance Google itself gives that this page never mentions. Complete process\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GCP Service Accounts: Setup and the Security Rule to Know\" \/>\n<meta property=\"og:description\" content=\"Create, assign, and remove a Google Cloud service account, plus the security guidance Google itself gives that this page never mentions. Complete process\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/\" \/>\n<meta property=\"og:site_name\" content=\"Prwatech\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prwatech.in\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-23T09:08:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-09-24T15:01:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-15.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1023\" \/>\n\t<meta property=\"og:image:height\" content=\"418\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Prwatech\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:site\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prwatech\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/\",\"url\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/\",\"name\":\"GCP Service Accounts: Setup and the Security Rule to Know\",\"isPartOf\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-15.jpg\",\"datePublished\":\"2026-09-23T09:08:05+00:00\",\"dateModified\":\"2026-09-24T15:01:54+00:00\",\"author\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\"},\"description\":\"Create, assign, and remove a Google Cloud service account, plus the security guidance Google itself gives that this page never mentions. Complete process\",\"breadcrumb\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/#primaryimage\",\"url\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-15.jpg\",\"contentUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-15.jpg\",\"width\":1023,\"height\":418},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/prwatech.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GCP Service Account\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/prwatech.in\/blog\/#website\",\"url\":\"https:\/\/prwatech.in\/blog\/\",\"name\":\"Prwatech\",\"description\":\"Share Ideas, Start Something Good.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/prwatech.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\",\"name\":\"Prwatech\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"caption\":\"Prwatech\"},\"url\":\"https:\/\/prwatech.in\/blog\/author\/prwatech123\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GCP Service Accounts: Setup and the Security Rule to Know","description":"Create, assign, and remove a Google Cloud service account, plus the security guidance Google itself gives that this page never mentions. Complete process","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/","og_locale":"en_US","og_type":"article","og_title":"GCP Service Accounts: Setup and the Security Rule to Know","og_description":"Create, assign, and remove a Google Cloud service account, plus the security guidance Google itself gives that this page never mentions. Complete process","og_url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/","og_site_name":"Prwatech","article_publisher":"https:\/\/www.facebook.com\/prwatech.in\/","article_published_time":"2026-09-23T09:08:05+00:00","article_modified_time":"2026-09-24T15:01:54+00:00","og_image":[{"width":1023,"height":418,"url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-15.jpg","type":"image\/jpeg"}],"author":"Prwatech","twitter_card":"summary_large_image","twitter_creator":"@Eduprwatech","twitter_site":"@Eduprwatech","twitter_misc":{"Written by":"Prwatech","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/","url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/","name":"GCP Service Accounts: Setup and the Security Rule to Know","isPartOf":{"@id":"https:\/\/prwatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/#primaryimage"},"image":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/#primaryimage"},"thumbnailUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-15.jpg","datePublished":"2026-09-23T09:08:05+00:00","dateModified":"2026-09-24T15:01:54+00:00","author":{"@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3"},"description":"Create, assign, and remove a Google Cloud service account, plus the security guidance Google itself gives that this page never mentions. Complete process","breadcrumb":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/#primaryimage","url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-15.jpg","contentUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-15.jpg","width":1023,"height":418},{"@type":"BreadcrumbList","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/gcp-service-account\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/prwatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"GCP Service Account"}]},{"@type":"WebSite","@id":"https:\/\/prwatech.in\/blog\/#website","url":"https:\/\/prwatech.in\/blog\/","name":"Prwatech","description":"Share Ideas, Start Something Good.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/prwatech.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3","name":"Prwatech","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","caption":"Prwatech"},"url":"https:\/\/prwatech.in\/blog\/author\/prwatech123\/"}]}},"_links":{"self":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/8163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/comments?post=8163"}],"version-history":[{"count":7,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/8163\/revisions"}],"predecessor-version":[{"id":11851,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/8163\/revisions\/11851"}],"wp:attachment":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media?parent=8163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/categories?post=8163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/tags?post=8163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}