Skip to main content
1 of 2
Rao
  • 16.8k
  • 13
  • 69
  • 108

Permissionset issue in Apex

When I try to look for a permission set associated with a particular user in a controller class, I am seeing a permissionset with name X00ed0000000TTlfAAG and ID 0PSd0000000XJ15 related to the user. (I searched for this permission set I am unable to find how this is related to the user).

![enter image description here][1] I tried from DEV console and I get nothing back too:

Execute Anonymous: list users_info = [SELECT PermissionSet.id,AssigneeId FROM PermissionSetAssignment WHERE Id =:'0PSd0000000XJ15'];

11:20:49.019 (19656000)|SOQL_EXECUTE_BEGIN|[1]|Aggregations:0|select PermissionSet.id, AssigneeId from PermissionSetAssignment where Id = :tmpVar1
11:20:49.032 (32737000)|SOQL_EXECUTE_END|[1]|Rows:0

I am a sys admin in my org , When I try to copy paste this URL I get insufficient priviledges. I checked the Recyle bin too , nothing there to delete.

Is this a bug , the ID seems to be a valid permset ID.? [1]: https://i.sstatic.net/iL3Ea.png

Rao
  • 16.8k
  • 13
  • 69
  • 108