SalesforceLabs / OrgCheck

Org Check is an easy-to-install and easy-to-use Salesforce application in order to quickly analyze your org and its technical debt.
MIT License
127 stars 28 forks source link

Insufficient Privileges when Clicking Public Group and Queue links #450

Open tobinman709 opened 2 hours ago

tobinman709 commented 2 hours ago

When clicking on public group or queue links in Orgcheck I am brought to a page that says insufficient privileges. The other component links work correctly. Has anyone experienced this issue before?

Also I am finding orgcheck opens a lot of components in classic mode is there anyway to control this?

I do not see any app options available to change.

Any help would be greatly appreciated overall this seems like a very useful tool.

Thanks, Tyler

VinceFINET commented 2 hours ago

dear Tyler

thank you for raising this issue.

for the first part of your issue

this is indeed an error in the code that creates the setup url for the queue or the public group.

i was able to reproduce very easily this.

image

For example the URL of a public group is https://orgcheckvalidation-dev-ed.my.salesforce.com/00G7Q000004M8nwUAC Where it should be not just the id but something else.

I will correct this asap. Thank you.

VinceFINET commented 2 hours ago

For the second part of your issue let's create another issue to separate the scope of each ticket. i'll do that for you don't worry.

451

VinceFINET commented 2 hours ago

Code to improve is the following:

https://github.com/SalesforceLabs/OrgCheck/blob/f65c7bb89a0b06d5aab0e47ce479610f7ad17429/force-app/main/default/lwc/orgcheckApp/api/core/orgcheck-api-sfconnectionmanager.js#L96

needs a new case statement for puvlic group and queue.