**Bug Description** <!--- Please write a clear description of the behavior you're seeing. Include screenshots in the *notes* section, if relevant. --> Cloud UI global agent query is not permission-gated appropriately. **Steps To Reproduce** <!--- Concisely describe steps we can take to reproduce this, using a numbered list --> 1. Create a custom role without `read:agent` permissions 2. Assign that role to yourself 3. Navigate to the Cloud UI 4. Note that the agents global query is being executed despite the user lacking permissions, resulting in `Unauthorized` responses **Browsers Tested:** * [x] Chrome * [ ] Firefox * [ ] Safari * [ ] Edge * [ ] IE ---------- **Notes** <!--- Provide any additional context that might be helpful for the team to pick up the ticket, including screenshots. -->