# Windows\_user\_privilege always shows up to date

**URL:** <https://discourse.chef.io/t/windows-user-privilege-always-shows-up-to-date/17776>\
**Category:** Chef Infra (archive)\
**Created:** [October 7, 2020, 12:51am UTC](https://discourse.chef.io/t/windows-user-privilege-always-shows-up-to-date/17776 "2020-10-07T00:51:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stones2125](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@stones2125](https://discourse.chef.io/u/stones2125)\
**Post date:** [October 7, 2020, 12:51am UTC](https://discourse.chef.io/t/windows-user-privilege-always-shows-up-to-date/17776/1 "2020-10-07T00:51:34Z")

</div>

When attempting to run the following code on Chef Client 15.10.12

windows\_user\_privilege 'domain\user' do  
privilege %w(SeServiceLogonRight)  
action :add  
end

It always skips it with "up to date", but yet the account is not been added to the Logon As A Service right.

Any ideas?

---

<div class="post-metadata">

**Author:** ![Pcguy88](https://avatars.discourse-cdn.com/v4/letter/p/f19dbf/32.png) [@Pcguy88](https://discourse.chef.io/u/Pcguy88)\
**Post date:** [October 7, 2020, 2:20pm UTC](https://discourse.chef.io/t/windows-user-privilege-always-shows-up-to-date/17776/2 "2020-10-07T14:20:37Z")

</div>

It would appear that the ‘users’ property for that resource is not the name so it can’t be passed in as such.

‘users’ has to be passed in as an array within the resource.

Whit

---

<div class="post-metadata">

**Author:** ![stones2125](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@stones2125](https://discourse.chef.io/u/stones2125)\
**Post date:** [October 7, 2020, 6:09pm UTC](https://discourse.chef.io/t/windows-user-privilege-always-shows-up-to-date/17776/3 "2020-10-07T18:09:29Z")

</div>

I tried using the users property, but that appears to only be valid for newer versions on the chef client. My V15 said it was an invalid property
