Get staff role id from cart in pos?

I see from the cart API in POS that we get the staff id. But we can’t query that further to get their role.

For us, all users should have access to the POS app extension but we want some app functions to be enabled depending on the staff’s role settings in admin (e.g. ‘limited permissions’ role won’t let user apply certain things to a cart from our app.

I can’t figure out how that can be done currently.

Hey @hmpws :waving_hand: - at the moment this is a limitation of the POS UI API, there’s not a way to grab the role/permissions of a staffmember. We did used to surface staff member permission data in the Admin API, but this has since been deprecated: staffMembers - GraphQL Admin

You can still see if a particular staff member is the shop’s owner though in the Admin API using the isShopOwner field. Hope this helps a bit - let me know if I can clarify anything on my end here.

Thanks, I also saw that before.

Requires read_users access scope. Also: The app must be a finance embedded app or installed on a Shopify Plus or Advanced store.

The access scope seems quite limiting unfortunately. Hopefully there is a better solution. We currently whitelist staffs based on ids instead and that isn’t a viable solutions for bigger merchants.