David Schach contacted me late last week with a problem - when trying to uninstall a package, he kept getting an error that permission sets from the package were assigned to a user. What was strange was that he had unassigned all of the users from the permission set. It was pretty easy to determine this, all you had to do was go to a permission set and click the Assigned Users button.
We met outside Starbucks this afternoon and worked together to see what was going on with the particular package. By using my favorite API tool, workbench, we were able to run the following SOQL query:
SELECT Assignee.Name, PermissionSet.Id, PermissionSet.Name
FROM PermissionSetAssignment
From this query, we found that there were actually some hidden permission set assignments. In this case, the packaged permission set had been assigned to a guest site user. Using workbench we deleted these assignments and tried the package uninstall process again. This time, it worked.
I dig connections like this because not only was I able to help, but now I have a fun use case to discuss with the packaging team around the uninstall process.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.