{"id":5111,"date":"2019-04-08T17:00:20","date_gmt":"2019-04-08T15:00:20","guid":{"rendered":"https:\/\/www.razumny.no\/?p=5111"},"modified":"2019-03-26T11:43:52","modified_gmt":"2019-03-26T10:43:52","slug":"permissions-assigned-to-domain-users-do-not-propagate-to-members","status":"publish","type":"post","link":"https:\/\/www.razumny.no\/?p=5111","title":{"rendered":"Permissions assigned to Domain Users do not propagate to members"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When you work product support on a specific product, you need to have a solid grasp of how to set up the product, as well as the best practices for making things work as you want and expect. This was certainly the case for me when I worked&nbsp;for <a href=\"https:\/\/www.fotoware.com\/\">FotoWare<\/a>. One of these best practices was not to use the Domain Users group to set permissions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What I hadn&#8217;t expected, was that this best practice would return as something I would find useful more than five years after leaving that job. And yet, I did a few months ago. Tier one support came to me with an issue where users wouldn&#8217;t get access to software distributed through Software Center. Looking at the settings in System Center, we found that access to the software was granted to Domain Users.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The reason why it didn&#8217; t work was the fact that permissions assigned to Domain Users do not propagate to members of that group. Digging a bit further, I found the reason:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Most methods do not reveal membership in the &#8220;primary&#8221; group. For most users, the &#8220;primary&#8221; group should be &#8220;Domain Users&#8221;. Specifically, the memberOf attribute of user objects, and the member attribute of group objects, never reveals &#8220;primary&#8221; group membership. In most domains, the member attribute of the &#8220;Domain Users&#8221; group is empty, and it is safe to assume that all users belong to this group. If you need to query for all users that have &#8220;Domain Users&#8221; designated as their &#8220;primary&#8221;, search for all users whose primaryGroupID attribute is 513.<\/p><p> <br>The primaryGroupToken attribute of the group &#8220;Domain Users&#8221; is the same integer, 513. The LDAP syntax filter could be: (primaryGroupID=513) Or, to find all direct members of &#8220;Domain Users&#8221;, plus all users that have this group designated as their &#8220;primary&#8221;: (|(memberOf=cn=Domain Users,cn=Users,dc=MyDomain,dc=com)(primaryGroupID=513)) To find all users that have some other group designated as their &#8220;primary&#8221;, the filter could be: (&amp;(objectCategory=person)(objectClass=user)(!primaryGroupID=513)) <\/p><cite><a href=\"https:\/\/social.technet.microsoft.com\/Forums\/windowsserver\/en-US\/373febac-665c-494d-91f7-834541c74bee\/cant-get-all-member-objects-from-domain-users-in-ldap?forum=winserverDS\">Richard Mueller on TechNet<\/a><\/cite><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Knowing this, the solution becomes pretty obvious; you should have a different contained OU to grant permissions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you work product support on a specific product, you need to have a solid grasp of how to set up the product, as well as the best practices for making things work as you want and expect. This was certainly the case for me when I worked&nbsp;for FotoWare. One of these best practices was [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[868],"tags":[],"class_list":["post-5111","post","type-post","status-publish","format-standard","hentry","category-user-management"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p2ukSU-1kr","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":2790,"url":"https:\/\/www.razumny.no\/?p=2790","url_meta":{"origin":5111,"position":0},"title":"Changing permissions for all subfolders (Windows)","author":"Aleksander Nordgarden-R\u00f8dner","date":"16\/02\/2015","format":false,"excerpt":"A user called in, saying that his unit\u00a0had been moved to a different department, and\u00a0that they had all lost access to their work folders. I knew of the change, and moved the folders to the new unit file share. That should have been it, and would have been, except for\u2026","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/www.razumny.no\/?cat=615"},"img":{"alt_text":"\"Replace permission entries on all child objects with entries shown here that apply to child objects\" is checked","src":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/Advanced-Security-Settings.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/Advanced-Security-Settings.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/Advanced-Security-Settings.png?resize=525%2C300 1.5x"},"classes":[]},{"id":2377,"url":"https:\/\/www.razumny.no\/?p=2377","url_meta":{"origin":5111,"position":1},"title":"Outlook: Delegate sending permissions","author":"Aleksander Nordgarden-R\u00f8dner","date":"17\/03\/2014","format":false,"excerpt":"Last week I showed you how to send as a different address. You might also want to allow someone else to send on behalf of you. Here's how: Click on File Go to Info > Account Settings > Delegate Access Click Add Search for, and select, the person you want\u2026","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/www.razumny.no\/?cat=615"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2513,"url":"https:\/\/www.razumny.no\/?p=2513","url_meta":{"origin":5111,"position":2},"title":"SSH: Logging in","author":"Aleksander Nordgarden-R\u00f8dner","date":"06\/10\/2014","format":false,"excerpt":"The single most handy tool for any Linux administrator is SSH.\u00a0Short for\u00a0Secure SHell, it is a way to connect to another computer, using the terminal. It is immensely powerful, and\u00a0gaining confidence with it can be a bit of a challenge. Before you can do ANYTHING else, you need to know\u2026","rel":"","context":"In &quot;Linux101&quot;","block_context":{"text":"Linux101","link":"https:\/\/www.razumny.no\/?cat=824"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5297,"url":"https:\/\/www.razumny.no\/?p=5297","url_meta":{"origin":5111,"position":3},"title":"Quickly check user logon time","author":"Aleksander Nordgarden-R\u00f8dner","date":"21\/10\/2019","format":false,"excerpt":"With surprising regularity, I need to check when a user last logged in. I recently found a command that returns this information; quser. Using it is simple enough; open a command prompt, enter the command, and hit return: Screenshot of a command line showing the results of the \"quser\" command\u2026","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/www.razumny.no\/?cat=615"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/image-5.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/image-5.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/image-5.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":2197,"url":"https:\/\/www.razumny.no\/?p=2197","url_meta":{"origin":5111,"position":4},"title":"Exporting members of an Active Directory group","author":"Aleksander Nordgarden-R\u00f8dner","date":"21\/10\/2013","format":false,"excerpt":"A while back, my boss came to me, asking me if I could get him an export of the users that are members of two groups in Active Directory. For the purposes of this blog post, let's call them \"OfflineUsers\" and \"Software Access\". As it turns out, this is pretty\u2026","rel":"","context":"In &quot;code examples&quot;","block_context":{"text":"code examples","link":"https:\/\/www.razumny.no\/?cat=119"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2595,"url":"https:\/\/www.razumny.no\/?p=2595","url_meta":{"origin":5111,"position":5},"title":"TeamViewer on Windows: Elevate session to have administrative permissions","author":"Aleksander Nordgarden-R\u00f8dner","date":"02\/02\/2015","format":false,"excerpt":"One of the Support Analyst's most powerful tools is the ability to remotely view and control the end user's computer. One of many tools that lets you do this, is TeamViewer. If User Account Control (UAC)\u00a0using secure desktop is enabled, that secure desktop\u00a0causes remote sessions without administrative privileges to go\u2026","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/www.razumny.no\/?cat=615"},"img":{"alt_text":"Click Advanced","src":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/804c7c24e3a1b7e2e4847b0a91dffee4a5db438c781e5308d18e7c4f45710207_1.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts\/5111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5111"}],"version-history":[{"count":4,"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts\/5111\/revisions"}],"predecessor-version":[{"id":5117,"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts\/5111\/revisions\/5117"}],"wp:attachment":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}