Skip to main content
1-Visitor
April 22, 2016
Question

I want to verify the user names which are listed in particular "Integrity Role Group " with local Excel sheet user names. Please help me, how to automate this use case using Batch Script?

  • April 22, 2016
  • 1 reply
  • 2174 views

Example: If "Integrity Developer Role Group" has listed with "user1, user2, user3, ....user10". But in my local "Excel user list" i have only 9-user (i.e user1, user2, user3, ...user9). In this case user10 is missing in my "Excel user list" file. so how to find this using "batch scripting file"

    1 reply

    16-Pearl
    April 25, 2016

    the CLI command:

        aa groups --members <groupname>

    gives you the Login names of all users in a Group.

    the CLI command:

        aa users --groups <username>

    gives you all the groups a user is member of.

    Note:

    this does not work for dynamic Groups, only for static domain Groups.

    HTH Matthias

    vs-31-VisitorAuthor
    1-Visitor
    April 25, 2016

    Hi Matthias,

    Thanks for your information. But in this case I want to check by using "Batch file" scripting.

    16-Pearl
    April 25, 2016

    What exactly do you mean by

    "Batch file" scripting.

    IMHO in a Batch file you can utilize the CLI PTC offers you (either using DOS Shell, Powershell, BASH or what ever)