---
name: schematics-apply_resource_group
title: Why can't Schematics find my resource group?
description: When you run an IBM Cloud Schematics plan or apply action, the resource group that you try to retrieve by using the `ibm_resource_group` data source cannot be found. The following error message is thrown.
last-updated: 2025-01-17
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/schematics?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Why can't Schematics find my resource group?
{: #rg-not-found}

When you run an IBM Cloud Schematics plan or apply action, the resource group that you try to retrieve by using the `ibm_resource_group` data source cannot be found. The following error message is thrown.
{: tsSymptoms}

```text
Error retrieving resource group <resource-group>: ResourceGroupDoesnotExist: Given resource Group : "<resource-group>" doesn't exist

```
{: screen}

You do not have the wanted permissions in Cloud Identity and Access Management to view the resource group. If you specified an API key in your Terraform template or in Schematics, this API key does not have the wanted permissions in IAM to view the resource group.
{: tsCauses}

Make sure that the **Viewer** permission on the resource group is assigned to you or the API key that you use. For more information, see [Adding resources to a resource group](https://cloud.ibm.com/docs/account?topic=account-rgs&interface=ui&format=markdown#add_to_rgs).
{: tsResolve}