|
Post by nick27 on Jul 2, 2019 0:47:39 GMT
Hi All,
Just wondering if anyone has noticed %XAuthenticatedUserGroups% missing from 2.11.1.2
I've got the following text input condition to check for AD Group and I was wondering why it wasn't working so I did an output of task sequence variables and found %XAuthenticatedUserGroups% missing.
<TextInput Question="Copy AD groups from computer:" Variable="CopyADGroups" Prompt="Computer Name" Required="FALSE" Condition='InStr ("%XAuthenticatedUserGroups%","AUR-Team-DISD")'/>
Thanks for your help.
Cheers,
Nick
|
|
|
Post by Jason on Jul 4, 2019 21:31:04 GMT
Do you have a UserAuth Action before this Action (as that's what populates this variable)?
|
|
|
Post by nick27 on Jul 4, 2019 23:58:19 GMT
Hi Jason, Thanks for your reply - Yes I do, see below - Is there anything special I need to put in there? ?xml version="1.0" encoding="utf-8"?> <UIpp Title="Title" Icon="logo2.ico" Color="#000000"> <Actions> <Action Type="UserAuth" Title="User Authentication" Domain="aur.com.au" MaxRetryCount="5"/> <Action Type="DefaultValues" ValueTypes="Asset" ShowProgress="False"> </Action> <Action Type="Input" Name="myInput" Title="Build Details" Size="Tall"> <TextInput Question="Please enter computer name:" Variable="OSDComputerName" Prompt="Computer Name" Default="%_SMSTSMachineName%" Hint="Please enter a valid computer name." RegEx="^(W|N|V).{9,11}"/> <TextInput Question="Copy AD groups from computer:" Variable="CopyADGroups" Prompt="Computer Name" Required="FALSE" Condition='InStr ("%XAuthenticatedUserGroups%","AUR-Team-DISD")'/> Read more: uiplusplus.boards.net/thread/352/missing-xauthenticatedusergroups-2-11-1#ixzz5skxXxbVc
|
|
|
Post by Jason on Jul 5, 2019 20:01:25 GMT
You also need to set the GetGroups attribute to True in the UserAuth action. The reference portion of the documentation doesn't [currently] include this attribute but it is in the examples for the action.
|
|
|
Post by nick27 on Jul 8, 2019 5:26:51 GMT
Thanks for your help Jason - Didn't notice that attribute there. All working now. Cheers
|
|