Skip to main content
1-Visitor
Apr 22, 2016 5:19 PM UTC
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?

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"

    4 replies

    16-Pearl
    Apr 25, 2016 6:18 AM UTC

    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

    Translate
    vs-31-VisitorAuthor
    1-Visitor
    Apr 25, 2016 6:36 AM UTC

    Hi Matthias,

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

    Translate
    16-Pearl
    Apr 25, 2016 2:19 PM UTC

    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)

    Translate