# Why does it turn into an unavailable room when I create a google resource calendar with its API?

**URL:** <https://discuss.google.dev/t/why-does-it-turn-into-an-unavailable-room-when-i-create-a-google-resource-calendar-with-its-api/98604>\
**Category:** Q&A\
**Created:** [December 12, 2022, 9:45am UTC](https://discuss.google.dev/t/why-does-it-turn-into-an-unavailable-room-when-i-create-a-google-resource-calendar-with-its-api/98604 "2022-12-12T09:45:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [December 12, 2022, 9:45am UTC](https://discuss.google.dev/t/why-does-it-turn-into-an-unavailable-room-when-i-create-a-google-resource-calendar-with-its-api/98604/1 "2022-12-12T09:45:00Z")

</div>

Hello,  
I am new to this environment and don’t know if I posted my question in the right place or not. Anyway, I posted the following [question](https://stackoverflow.com/questions/74755419/why-does-it-turn-into-an-unavailable-room-when-i-create-a-google-resource-calend) on StackOverflow as well without any response yet. That’s why I decided to raise that on the google community directly:

I’m going to create a google resource calendar room via its API (i.e. `[https://admin.googleapis.com/admin/directory/v1/customer/my_customer/resources/calendars](https://admin.googleapis.com/admin/directory/v1/customer/my_customer/resources/calendars)`). But the problem is, when I create one, it turns into an unavailable (crossed out) room within google calendar rooms and I couldn’t find any attribute to make it available!

Here’s the body request/response:

```json
{
  "kind": "admin#directory#resources#calendars#CalendarResource",
  "etags": "\"CTyc505ppdmJR2motHVsU17kzItOkPo5vYViqlSF0rU/FB0b765ZgWIpTBaxn5YQIwZWWNM\"",
  "resourceId": "9f698cdc-84f9-4688-95a7-c2207b4fa7ae",
  "resourceName": "StackOverflow Test",
  "generatedResourceName": "Orangery Hildesheim Nordstadt-EG-StackOverflow Test (3)",
  "resourceEmail": "c_1881d77mmcaqsihgi426fseae6vnc@resource.calendar.google.com",
  "capacity": 3,
  "buildingId": "Orangery-Hildesheim-Nordstadt",
  "floorName": "EG",
  "resourceCategory": "CONFERENCE_ROOM"
}

```

Here’s the output on google calendar:

 ![i4iGh](https://d2yds90mtvelsl.cloudfront.net/original/3X/8/0/8084dcf27b2326bf46fbdfd87dc47f0bb97d1fab.png)

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [December 15, 2022, 5:53am UTC](https://discuss.google.dev/t/why-does-it-turn-into-an-unavailable-room-when-i-create-a-google-resource-calendar-with-its-api/98604/2 "2022-12-15T05:53:53Z")

</div>

Unsure if its related but I am having the same issue with a resource created within Google Admin. The resource is shown as unavailable when trying to add it to calendar events but if you add it anyway it will accept the invite as its actually free at the time.

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [December 16, 2022, 7:28pm UTC](https://discuss.google.dev/t/why-does-it-turn-into-an-unavailable-room-when-i-create-a-google-resource-calendar-with-its-api/98604/3 "2022-12-16T19:28:08Z")

</div>

I’m also having the exact same issue. Have raised a ticket with google

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [December 18, 2022, 9:30pm UTC](https://discuss.google.dev/t/why-does-it-turn-into-an-unavailable-room-when-i-create-a-google-resource-calendar-with-its-api/98604/4 "2022-12-18T21:30:13Z")

</div>

In the end our resource started working correctly a day later. No idea why. I created another resource as a test and it also appears unavailable after being created. Might be a timing issue.

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [December 19, 2022, 2:24am UTC](https://discuss.google.dev/t/why-does-it-turn-into-an-unavailable-room-when-i-create-a-google-resource-calendar-with-its-api/98604/5 "2022-12-19T02:24:22Z")

</div>

Thanks for reporting back and glad its fixed for you! I’m waiting for confirmation from my client to see if it fixed itself over the weekend

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [February 15, 2023, 1:52pm UTC](https://discuss.google.dev/t/why-does-it-turn-into-an-unavailable-room-when-i-create-a-google-resource-calendar-with-its-api/98604/6 "2023-02-15T13:52:29Z")

</div>

After two months finally I found a solution!

In fact, the main problem is related to the lack of permission for those created resources for other users in the organization. To tackle this problem I used another google API named ACL (Access Control Level) [ref](https://developers.google.com/calendar/api/v3/reference/acl), to set a privilege for other users. Basically, a google resource actually is a google resource calendar, so you can use ACL API to access that calendar. Moreover, the parameter to reach that calendar is `resourceEmail` as the unique ID of the respective resource calendar.

Here’s the thing I did to make unavailable resources to be available (bookable):

- POST [https://www.googleapis.com/calendar/v3/calendars/calendarId/acl](https://www.googleapis.com/calendar/v3/calendars/calendarId/acl)
- change `calendarId` with the value of `resourceEmail` of the google resource.
- the body of the request:

```json
{
"scope": {
"type": "domain",
"value": "orangery.io" # if you selected type as `domain` you should write your domain name here.
},
"role": "writer"
}

```

* * *

[**NOTE**]:

With this procedure, you will need to the `[https://www.googleapis.com/auth/calendar](https://www.googleapis.com/auth/calendar)` authorization scope as well.

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [June 8, 2023, 12:57pm UTC](https://discuss.google.dev/t/why-does-it-turn-into-an-unavailable-room-when-i-create-a-google-resource-calendar-with-its-api/98604/7 "2023-06-08T12:57:48Z")

</div>

Same here. I was facing the same issue from last couple of weeks, Posted on many forums but couldn’t found any proper solution. Do let me know if you find[!](https://apps.shopify.com/extendons-animated-login)

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [August 30, 2023, 4:12pm UTC](https://discuss.google.dev/t/why-does-it-turn-into-an-unavailable-room-when-i-create-a-google-resource-calendar-with-its-api/98604/8 "2023-08-30T16:12:04Z")

</div>

Did your calendar ever start functioning correctly? If so, what did you do?

---

<div class="post-metadata">

**Author:** ![nalajcie](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@nalajcie](https://discuss.google.dev/u/nalajcie)\
**Post date:** [March 13, 2025, 9:24am UTC](https://discuss.google.dev/t/why-does-it-turn-into-an-unavailable-room-when-i-create-a-google-resource-calendar-with-its-api/98604/9 "2025-03-13T09:24:39Z")

</div>

This was solved for me by enabling

“Allow users to book resources that are shared as ‘See only free/busy’”

in

Apps → Google Workspace → Settings for Calendar → General settings

---

<div class="post-metadata">

**Author:** ![TheMoonster](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/themoonster/32/63773_2.png) [@TheMoonster](https://discuss.google.dev/u/TheMoonster)\
**Post date:** [April 18, 2025, 5:16pm UTC](https://discuss.google.dev/t/why-does-it-turn-into-an-unavailable-room-when-i-create-a-google-resource-calendar-with-its-api/98604/10 "2025-04-18T17:16:39Z")

</div>

Thanks, this was the fix! This is an obscure setting that IMO should be enabled by default.
