# User with Inventory Role cannot see widgets in Application Builder

**URL:** <https://community.cumulocity.com/t/user-with-inventory-role-cannot-see-widgets-in-application-builder/2894>\
**Category:** Forum\
**Tags:** cumulocity-edge, cumulocity\
**Created:** [April 14, 2023, 10:49am UTC](https://community.cumulocity.com/t/user-with-inventory-role-cannot-see-widgets-in-application-builder/2894 "2023-04-14T10:49:56Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![simeon.mendgen](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@simeon.mendgen](https://community.cumulocity.com/u/simeon.mendgen)\
**Post date:** [April 14, 2023, 10:49am UTC](https://community.cumulocity.com/t/user-with-inventory-role-cannot-see-widgets-in-application-builder/2894/1 "2023-04-14T10:49:56Z")

</div>

Hi Cumulocity IoT Users,

i have a problem with inventory roles and the Application Builder. I think i set it up correctly but the widgets in the Dashboards do not load (see screenshot)  
For my admin user they do load.

#### _Product/components used and version/fix level are you on:_

Cumulocity Backend Version: 1015.0.244  
Application Builder Version: 1011.0.37

#### _Detailed explanation of the problem:_

What i have on the tenant:

- A group “BobsGroup” containing one device “BobsDevice”
- Custom Application Builder App “BobsApp”
  - displaying a dashboard containing widgets that show values of Device “BobsDevice”

- Global role “CustomUserRole”
  - access to Application Builder
  - (and little other stuff not relevant )

- Inventory role “Device Measurements Events Alarms Read”
  - see screenshot

- User “Bob”
  - assigned to global role “CustomUserRole”
  - assigned to inventory role “Device Measurements Events Alarms Read” for the Group “BobsGroup”
  - allowed application access to “BobsApp”

→ Bob user is able to log in and see the “BobsApp” but no Widgets are loaded. (see screenshot)

Opend with Bob:

 ![BobsApp](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/4/a/4af3a264deb4e4ccb54caac05125cf6be695ef01.png)

Opend with Admin User:

 ![BobsAppAdmin2](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/0/e/0e6a423c178b1229287b9b5693a23a8f3f11f358.png)

Configured Inventory Role:

 ![inventory role](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/a/f/afdb80add0eb404acc31dca27a4d8d33e21da67b.png)

#### _Error messages / **full error** message screenshot / log fileL_

None

#### _Is your question related to the free trial, or to a production (customer) instance?_

Cumulocity IoT Edge

#### _Have you installed all the latest fixes for the products and systems you are using?_

see versions, updated some weeks ago

---

<div class="post-metadata">

**Author:** ![Darpankumar\_Lalani](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@Darpankumar\_Lalani](https://community.cumulocity.com/u/Darpankumar_Lalani)\
**Post date:** [April 14, 2023, 1:44pm UTC](https://community.cumulocity.com/t/user-with-inventory-role-cannot-see-widgets-in-application-builder/2894/2 "2023-04-14T13:44:13Z")

</div>

Hi Simeon,

Thanks for sharing details. I am not sure why it is not working for you.

I need some details to investigate further:

1. Are you getting any error in browser console when you are trying access app using Bob user ?  
If yes, please share screenshot/error details.

2. Are you getting same error while accessing from different browser ?

---

<div class="post-metadata">

**Author:** ![simeon.mendgen](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@simeon.mendgen](https://community.cumulocity.com/u/simeon.mendgen)\
**Post date:** [April 14, 2023, 2:12pm UTC](https://community.cumulocity.com/t/user-with-inventory-role-cannot-see-widgets-in-application-builder/2894/3 "2023-04-14T14:12:58Z")

</div>

Hi Darpan,

1. Errors when loading the page:  

2. I can only use google chrome atm, because of proxy/vpn issues.

---

<div class="post-metadata">

**Author:** ![Darpankumar\_Lalani](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@Darpankumar\_Lalani](https://community.cumulocity.com/u/Darpankumar_Lalani)\
**Post date:** [April 18, 2023, 4:47am UTC](https://community.cumulocity.com/t/user-with-inventory-role-cannot-see-widgets-in-application-builder/2894/4 "2023-04-18T04:47:07Z")

</div>

Hi Simeon,

Is there any role(s) assigned to dashboard?  
You can verify that using Admin access from here: BobsApp → Configuration → General → Your Dashboard.

Have you configured any specific permission to CustomUserRole ?

---

<div class="post-metadata">

**Author:** ![Stefan\_Witschel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/stefan_witschel/32/31955_2.png) [@Stefan\_Witschel](https://community.cumulocity.com/u/Stefan_Witschel)\
**Post date:** [April 18, 2023, 7:42am UTC](https://community.cumulocity.com/t/user-with-inventory-role-cannot-see-widgets-in-application-builder/2894/5 "2023-04-18T07:42:53Z")

</div>

I also recognized that. Some widgets and dashboard of the application builder creating Managed Objects which are not part of any group. When using inventory roles the user does not have access to them unfortunately. For me this is a bad data design.

Workaround was to search for them (via console), add them to a group, assign inventory roles to that group so the user can access them 😉  
It’s not so easy as the Managed objects are not visible in any UI you have to access them using the devicemanagement UI and their inventory ID assigning them to the group you assign to that user.

---

<div class="post-metadata">

**Author:** ![Darpankumar\_Lalani](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@Darpankumar\_Lalani](https://community.cumulocity.com/u/Darpankumar_Lalani)\
**Post date:** [April 18, 2023, 10:00am UTC](https://community.cumulocity.com/t/user-with-inventory-role-cannot-see-widgets-in-application-builder/2894/6 "2023-04-18T10:00:30Z")

</div>

Thanks @Stefan_Witschel for sharing feedback.  
In application builder 1.3.1, we have introduced “Role based Access”. This enables user to control dashboard visibility in application builder by assigning global role(s) to a dashboard.

Any Managed Object created w.r.t. dashboard by application builder is having c8y\_global fragment. Therefore, those managed object are accessible without assigning any specific role/permissions.

---

<div class="post-metadata">

**Author:** ![simeon.mendgen](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@simeon.mendgen](https://community.cumulocity.com/u/simeon.mendgen)\
**Post date:** [April 18, 2023, 10:58am UTC](https://community.cumulocity.com/t/user-with-inventory-role-cannot-see-widgets-in-application-builder/2894/7 "2023-04-18T10:58:57Z")

</div>

Hi and thanks for the responses,

@Darpankumar_Lalani yes i used the RBAC. As you can see in the screenshots i sent before, in the naviagation list of Admin more entries therfore more Dashboards can be displayed. Here is a screenshot of this config:

 ![RBAC](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/a/d/ad94d07ab34e1f74c841e4681e1b737fc591de55.png)

This works fine with displaying the or not displaying the links in the navigation. I do not think that is the reason for the widgets not to load - i can access the dashboards that i want so it seems to me that this feature works fine.

@Stefan_Witschel I did not have the time to try that workaround yet. i will keep you updated

---

<div class="post-metadata">

**Author:** ![Stefan\_Witschel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/stefan_witschel/32/31955_2.png) [@Stefan\_Witschel](https://community.cumulocity.com/u/Stefan_Witschel)\
**Post date:** [April 18, 2023, 12:31pm UTC](https://community.cumulocity.com/t/user-with-inventory-role-cannot-see-widgets-in-application-builder/2894/8 "2023-04-18T12:31:19Z")

</div>

@simeon.mendgen It might be related to widgets you are using. Can you state which widgets you use in your application builder dashboard?

---

<div class="post-metadata">

**Author:** ![simeon.mendgen](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@simeon.mendgen](https://community.cumulocity.com/u/simeon.mendgen)\
**Post date:** [April 18, 2023, 1:09pm UTC](https://community.cumulocity.com/t/user-with-inventory-role-cannot-see-widgets-in-application-builder/2894/9 "2023-04-18T13:09:55Z")

</div>

The widgets i use in this dashboard are:

- Datapoints Graph,
- Radial Gauge
- Linear Gauge
- Info Gauge
- Image

---

<div class="post-metadata">

**Author:** ![Darpankumar\_Lalani](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@Darpankumar\_Lalani](https://community.cumulocity.com/u/Darpankumar_Lalani)\
**Post date:** [April 19, 2023, 11:19am UTC](https://community.cumulocity.com/t/user-with-inventory-role-cannot-see-widgets-in-application-builder/2894/10 "2023-04-19T11:19:45Z")

</div>

Hi Simeon,

Thanks for sharing widget details.  
I tried to simulate your scenario in my tenant. However, issue reported by you is not reproducible.  
Please see below screenshot:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/8/3/83ce3c47f26089704f34cf54e6efd7891e35e099.png).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [October 16, 2023, 11:20am UTC](https://community.cumulocity.com/t/user-with-inventory-role-cannot-see-widgets-in-application-builder/2894/11 "2023-10-16T11:20:30Z")

</div>

Closed on October 16, 2023, 11:20am UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
