GCP Related Projects continue to appear in "Discover All Related Accounts" selection despite operational status being retiredIssue <!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } When configuring a GCP Discovery Schedule and enabling "Discover all related accounts listed below", customers may expect cloud service accounts that has Operational Status set to Retired to be automatically excluded. However, these accounts can continue to appear in the related projects list. Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Any Cause<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } The "Discover all related accounts listed below" functionality, when the toggle is enabled, the UI calls the get_member_accounts API to retrieve projects associated with the GCP organization.https://<instancename>.service-now.com/api/now/cloud_schedule_config/6a5deb7d8789d1d8808bb95f8bbb359e/false/get_member_accounts/nullGet Member Service Accountshttps://<instancename>.service-now.com/nav_to.do?uri=sys_ws_operation.do?sys_id=005ba76b1b475d10b5d9c84b234bcbd1The OOB "CloudDiscoveryScheduleConfigs" script logic used by the "Discover all related accounts listed below" option retrieves related GCP projects/accounts from the cmdb_ci_cloud_service_account table using the following criteria: https://<instancename>.service-now.com/nav_to.do?uri=sys_script_include.do?sys_id=96891f3953f313007f3c48f153dc348b getMemberServiceAccounts: function(masterAccount, discoverMemberAccounts, midServer) {var resultForMemberServiceAccounts = {};var serviceAccounts = [];var masterAccGR = new GlideRecord('cmdb_ci_cloud_service_account');if (masterAccGR.get(masterAccount)) {var serviceAccountGR = new GlideRecord('cmdb_ci_cloud_service_account');serviceAccountGR.addQuery('install_status', '!=', '7'); // Retired/Deleted Service Accounts should not be included in the listserviceAccountGR.addQuery('exclude_from_discovery', false);if (masterAccGR.getValue('datacenter_type') == 'cmdb_ci_google_datacenter' && masterAccGR.getValue('organization_id')) {serviceAccountGR.addQuery('organization_id', masterAccGR.getValue('organization_id'));serviceAccountGR.addQuery('sys_id', '!=', masterAccount);serviceAccountGR.query();} else {serviceAccountGR.addQuery('parent_account', masterAccount);serviceAccountGR.query();} Based on the OOB code, Service accounts are included when: They belong to the same organization_id as the selected GCP accountexclude_from_discovery = falseinstall_status != 7 (Retired) The account retrieval query does not filter on operational_status = operational; instead, it only excludes accounts whose install_status = 7 (Retired). The Operational Status value is not used as part of the filtering criteria. Therefore, manually changing an account's Operational Status to Retired does not prevent it from being returned by the related account query if the Install Status remains Installed. Resolution<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } - Review the Cloud Service Account record and verify the Install Status value. - If the account should no longer be returned by "Discover all related accounts listed below", update the account's Install Status to Retired (install_status = 7). - After updating the record, refresh/reload the related account selection and verify that the account is no longer returned in the related projects list. This behavior is working as designed according to the current OOB implementation.