Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission Set Group Issue #39

Closed
grahampcurran opened this issue Apr 23, 2021 · 9 comments
Closed

Permission Set Group Issue #39

grahampcurran opened this issue Apr 23, 2021 · 9 comments
Assignees
Labels
bug Something isn't working
Projects

Comments

@grahampcurran
Copy link

Hi there,
I am getting the following error when trying to run the permissions report in Production:
Uncaught (in promise) TypeError: Cannot read property 'Name' of null at B.getPermissionSetNames (build.js:2) at async i.runReport (build.js:2) at chrome-extension://gkibdicghcpcikhjpgjoijpobdipklnp/public/async chrome-extension:/gkibdicghcpcikhjpgjoijpobdipklnp/build.js:2
The User has permission sets and a permission set group assigned.

@hudec117 hudec117 added the bug Something isn't working label Apr 24, 2021
@hudec117 hudec117 self-assigned this Apr 24, 2021
@hudec117
Copy link
Owner

Hello @grahampcurran, could you please run:

SELECT PermissionSet.Name, PermissionSet.Type FROM PermissionSetAssignment WHERE AssigneeId = 'USERID' AND PermissionSet.IsOwnedByProfile = false

Where "USERID" is the ID of the user you are trying to open the report for. Please censor anything confidential.

@hudec117 hudec117 added this to To do in 1.2.1 Apr 26, 2021
@grahampcurran
Copy link
Author

Hey, see below
2021-04-26 16_07_20-Developer Console

@hudec117
Copy link
Owner

And then if you run:

SELECT PermissionSet.Name FROM PermissionSetGroupComponent WHERE PermissionSetGroup.DeveloperName = 'CPQ_Standard_User'

This will allow me to see what data the code is working with.

@grahampcurran
Copy link
Author

Sure. There is a (null PermissionSet) in there which is quite odd. Probably the source of the issue. Ill have a look at that on my side.
2021-04-27 13_04_31-Developer Console

@hudec117
Copy link
Owner

Looks like the 3rd from bottom is the issue, I should probably add an additional condition to filter it out.

SELECT PermissionSet.Name, PermissionSet.Type, PermissionSet.IsOwnedByProfile FROM PermissionSetGroupComponent WHERE PermissionSetGroup.DeveloperName = 'CPQ_Standard_User'

Sorry I keep asking you to run queries, this should be the last one. I added 2 more fields and I expected PermissionSet.Type or Permissionset.IsOwnedByProfile to be usable on filtering out the "(null PermissionSet)"

@hudec117
Copy link
Owner

Looks like this is due to a muting permission set in the permission set group. In the query it shows up as an empty PermissionSet.Name. I have added a fix and will put it in the 1.2.1 release.

@hudec117 hudec117 moved this from To do to Done in 1.2.1 Apr 29, 2021
hudec117 added a commit that referenced this issue Apr 29, 2021
@grahampcurran
Copy link
Author

hey sorry for the delay.
See below. Hope thats in line with your thinking
2021-05-02 12_51_09-Window

@hudec117
Copy link
Owner

hudec117 commented May 2, 2021

Thanks! That confirms my suspicion, it's the muting permission set that causes the trouble, I've patched it and include it in a hotfix release.

@hudec117
Copy link
Owner

@grahampcurran I appreciate it has been nearly a year, but I've released a fix for this now haha. I'm going to close this as fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
1.2.1
  
Done
Development

No branches or pull requests

2 participants