{"id":191,"date":"2023-03-02T19:04:38","date_gmt":"2023-03-02T14:04:38","guid":{"rendered":"http:\/\/doozyspot.com\/?p=191"},"modified":"2023-03-02T19:04:42","modified_gmt":"2023-03-02T14:04:42","slug":"query-to-find-permission-sets-assigned-to-users","status":"publish","type":"post","link":"https:\/\/doozyspot.com\/?p=191","title":{"rendered":"Query to find Permission sets assigned to Users"},"content":{"rendered":"\n<p>DescriptionBelow is the SOQL query we can create using Workbench to capture the&nbsp;Permission Sets associated with a given User or Profile via the Permission Set Assignment object<\/p>\n\n\n\n<p>ResolutionQuery:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT Id, PermissionSetId,&nbsp;PermissionSet.Name, PermissionSet.ProfileId,&nbsp;PermissionSet.Profile.Name, AssigneeId,&nbsp;Assignee.Name&nbsp;FROM PermissionSetAssignment WHERE&nbsp;Assignee.Name&nbsp;= 'JOHN SMITH'<\/pre>\n\n\n\n<p>Or retrieve all users associated with a specific PermissionSet like:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT Id, PermissionSetId,&nbsp;PermissionSet.Name, PermissionSet.ProfileId,&nbsp;PermissionSet.Profile.Name, AssigneeId,&nbsp;Assignee.Name&nbsp;FROM PermissionSetAssignment WHERE&nbsp;PermissionSet.Name&nbsp;= 'Custom PermissionSet Name'<\/pre>\n\n\n\n<p><strong>Note<\/strong>: The above code is an example and may vary depending on the organization&#8217;s customization.<\/p>\n\n\n\n<p><strong>Additional Reference:<\/strong><br><strong><a target=\"_blank\" href=\"https:\/\/developer.salesforce.com\/docs\/atlas.en-us.object_reference.meta\/object_reference\/sforce_api_objects_permissionsetassignment.htm\" rel=\"noreferrer noopener\">Object Reference for Salesforce and Lightning Platform<\/a><br><a target=\"_blank\" href=\"https:\/\/developer.salesforce.com\/blogs\/engineering\/2012\/06\/using-soql-to-determine-your-users-permissions-2.html\" rel=\"noreferrer noopener\"><em>Blog: Using SOQL to Determine Your&nbsp;<\/em><\/a><em><a target=\"_blank\" href=\"http:\/\/force.com\/\" rel=\"noreferrer noopener\">Force.com<\/a><\/em><a target=\"_blank\" href=\"https:\/\/developer.salesforce.com\/blogs\/engineering\/2012\/06\/using-soql-to-determine-your-users-permissions-2.html\" rel=\"noreferrer noopener\"><em>&nbsp;User\u2019s Permissions<\/em><\/a><\/strong><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>DescriptionBelow is the SOQL query we can create using Workbench to capture the&nbsp;Permission Sets associated with a given User or Profile via the Permission Set Assignment object ResolutionQuery: SELECT Id, PermissionSetId,&nbsp;PermissionSet.Name, PermissionSet.ProfileId,&nbsp;PermissionSet.Profile.Name, AssigneeId,&nbsp;Assignee.Name&nbsp;FROM PermissionSetAssignment WHERE&nbsp;Assignee.Name&nbsp;= &#8216;JOHN SMITH&#8217; Or retrieve all users associated with a specific PermissionSet like: SELECT Id, PermissionSetId,&nbsp;PermissionSet.Name, PermissionSet.ProfileId,&nbsp;PermissionSet.Profile.Name, AssigneeId,&nbsp;Assignee.Name&nbsp;FROM PermissionSetAssignment WHERE&nbsp;PermissionSet.Name&nbsp;= &#8216;Custom [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-191","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Query to find Permission sets assigned to Users - DoozySpot<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/doozyspot.com\/?p=191\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Query to find Permission sets assigned to Users - DoozySpot\" \/>\n<meta property=\"og:description\" content=\"DescriptionBelow is the SOQL query we can create using Workbench to capture the&nbsp;Permission Sets associated with a given User or Profile via the Permission Set Assignment object ResolutionQuery: SELECT Id, PermissionSetId,&nbsp;PermissionSet.Name, PermissionSet.ProfileId,&nbsp;PermissionSet.Profile.Name, AssigneeId,&nbsp;Assignee.Name&nbsp;FROM PermissionSetAssignment WHERE&nbsp;Assignee.Name&nbsp;= &#039;JOHN SMITH&#039; Or retrieve all users associated with a specific PermissionSet like: SELECT Id, PermissionSetId,&nbsp;PermissionSet.Name, PermissionSet.ProfileId,&nbsp;PermissionSet.Profile.Name, AssigneeId,&nbsp;Assignee.Name&nbsp;FROM PermissionSetAssignment WHERE&nbsp;PermissionSet.Name&nbsp;= &#039;Custom [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/doozyspot.com\/?p=191\" \/>\n<meta property=\"og:site_name\" content=\"DoozySpot\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-02T14:04:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-02T14:04:42+00:00\" \/>\n<meta name=\"author\" content=\"doozyspot\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"doozyspot\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/doozyspot.com\/?p=191#article\",\"isPartOf\":{\"@id\":\"https:\/\/doozyspot.com\/?p=191\"},\"author\":{\"name\":\"doozyspot\",\"@id\":\"https:\/\/doozyspot.com\/#\/schema\/person\/bccb52398479b1354683df33f84154d6\"},\"headline\":\"Query to find Permission sets assigned to Users\",\"datePublished\":\"2023-03-02T14:04:38+00:00\",\"dateModified\":\"2023-03-02T14:04:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/doozyspot.com\/?p=191\"},\"wordCount\":85,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/doozyspot.com\/#organization\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/doozyspot.com\/?p=191#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/doozyspot.com\/?p=191\",\"url\":\"https:\/\/doozyspot.com\/?p=191\",\"name\":\"Query to find Permission sets assigned to Users - DoozySpot\",\"isPartOf\":{\"@id\":\"https:\/\/doozyspot.com\/#website\"},\"datePublished\":\"2023-03-02T14:04:38+00:00\",\"dateModified\":\"2023-03-02T14:04:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/doozyspot.com\/?p=191#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/doozyspot.com\/?p=191\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/doozyspot.com\/?p=191#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/doozyspot.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Query to find Permission sets assigned to Users\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/doozyspot.com\/#website\",\"url\":\"https:\/\/doozyspot.com\/\",\"name\":\"DoozySpot\",\"description\":\"One of its kind in knowledge base\",\"publisher\":{\"@id\":\"https:\/\/doozyspot.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/doozyspot.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/doozyspot.com\/#organization\",\"name\":\"DoozySpot\",\"url\":\"https:\/\/doozyspot.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/doozyspot.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/doozyspot.com\/wp-content\/uploads\/2023\/03\/download.jpg\",\"contentUrl\":\"http:\/\/doozyspot.com\/wp-content\/uploads\/2023\/03\/download.jpg\",\"width\":1200,\"height\":1200,\"caption\":\"DoozySpot\"},\"image\":{\"@id\":\"https:\/\/doozyspot.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/doozyspot.com\/#\/schema\/person\/bccb52398479b1354683df33f84154d6\",\"name\":\"doozyspot\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/doozyspot.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2584f56a7b7945fd49a8fdf22dd31fa7baf3cf6f10370736f2d2895c7d9219f4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2584f56a7b7945fd49a8fdf22dd31fa7baf3cf6f10370736f2d2895c7d9219f4?s=96&d=mm&r=g\",\"caption\":\"doozyspot\"},\"sameAs\":[\"http:\/\/doozyspot.com\"],\"url\":\"https:\/\/doozyspot.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Query to find Permission sets assigned to Users - DoozySpot","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/doozyspot.com\/?p=191","og_locale":"en_US","og_type":"article","og_title":"Query to find Permission sets assigned to Users - DoozySpot","og_description":"DescriptionBelow is the SOQL query we can create using Workbench to capture the&nbsp;Permission Sets associated with a given User or Profile via the Permission Set Assignment object ResolutionQuery: SELECT Id, PermissionSetId,&nbsp;PermissionSet.Name, PermissionSet.ProfileId,&nbsp;PermissionSet.Profile.Name, AssigneeId,&nbsp;Assignee.Name&nbsp;FROM PermissionSetAssignment WHERE&nbsp;Assignee.Name&nbsp;= 'JOHN SMITH' Or retrieve all users associated with a specific PermissionSet like: SELECT Id, PermissionSetId,&nbsp;PermissionSet.Name, PermissionSet.ProfileId,&nbsp;PermissionSet.Profile.Name, AssigneeId,&nbsp;Assignee.Name&nbsp;FROM PermissionSetAssignment WHERE&nbsp;PermissionSet.Name&nbsp;= 'Custom [&hellip;]","og_url":"https:\/\/doozyspot.com\/?p=191","og_site_name":"DoozySpot","article_published_time":"2023-03-02T14:04:38+00:00","article_modified_time":"2023-03-02T14:04:42+00:00","author":"doozyspot","twitter_card":"summary_large_image","twitter_misc":{"Written by":"doozyspot","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/doozyspot.com\/?p=191#article","isPartOf":{"@id":"https:\/\/doozyspot.com\/?p=191"},"author":{"name":"doozyspot","@id":"https:\/\/doozyspot.com\/#\/schema\/person\/bccb52398479b1354683df33f84154d6"},"headline":"Query to find Permission sets assigned to Users","datePublished":"2023-03-02T14:04:38+00:00","dateModified":"2023-03-02T14:04:42+00:00","mainEntityOfPage":{"@id":"https:\/\/doozyspot.com\/?p=191"},"wordCount":85,"commentCount":0,"publisher":{"@id":"https:\/\/doozyspot.com\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/doozyspot.com\/?p=191#respond"]}]},{"@type":"WebPage","@id":"https:\/\/doozyspot.com\/?p=191","url":"https:\/\/doozyspot.com\/?p=191","name":"Query to find Permission sets assigned to Users - DoozySpot","isPartOf":{"@id":"https:\/\/doozyspot.com\/#website"},"datePublished":"2023-03-02T14:04:38+00:00","dateModified":"2023-03-02T14:04:42+00:00","breadcrumb":{"@id":"https:\/\/doozyspot.com\/?p=191#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/doozyspot.com\/?p=191"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/doozyspot.com\/?p=191#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/doozyspot.com\/"},{"@type":"ListItem","position":2,"name":"Query to find Permission sets assigned to Users"}]},{"@type":"WebSite","@id":"https:\/\/doozyspot.com\/#website","url":"https:\/\/doozyspot.com\/","name":"DoozySpot","description":"One of its kind in knowledge base","publisher":{"@id":"https:\/\/doozyspot.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/doozyspot.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/doozyspot.com\/#organization","name":"DoozySpot","url":"https:\/\/doozyspot.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/doozyspot.com\/#\/schema\/logo\/image\/","url":"http:\/\/doozyspot.com\/wp-content\/uploads\/2023\/03\/download.jpg","contentUrl":"http:\/\/doozyspot.com\/wp-content\/uploads\/2023\/03\/download.jpg","width":1200,"height":1200,"caption":"DoozySpot"},"image":{"@id":"https:\/\/doozyspot.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/doozyspot.com\/#\/schema\/person\/bccb52398479b1354683df33f84154d6","name":"doozyspot","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/doozyspot.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2584f56a7b7945fd49a8fdf22dd31fa7baf3cf6f10370736f2d2895c7d9219f4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2584f56a7b7945fd49a8fdf22dd31fa7baf3cf6f10370736f2d2895c7d9219f4?s=96&d=mm&r=g","caption":"doozyspot"},"sameAs":["http:\/\/doozyspot.com"],"url":"https:\/\/doozyspot.com\/?author=1"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/doozyspot.com\/index.php?rest_route=\/wp\/v2\/posts\/191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doozyspot.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doozyspot.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doozyspot.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doozyspot.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=191"}],"version-history":[{"count":1,"href":"https:\/\/doozyspot.com\/index.php?rest_route=\/wp\/v2\/posts\/191\/revisions"}],"predecessor-version":[{"id":192,"href":"https:\/\/doozyspot.com\/index.php?rest_route=\/wp\/v2\/posts\/191\/revisions\/192"}],"wp:attachment":[{"href":"https:\/\/doozyspot.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doozyspot.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doozyspot.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}