Share, Vote, & Discuss Ideas

We're constantly looking for new ways to improve our products and are asking you to help us by sharing your own ideas, voting for ideas you like, and discussing them with the rest of the community.

Group filter for 'p4 users'

It would be helpful to be able to list the users belonging to a group, both directly, and indirectly by virtual of being a member of a sub-group.

So for example 'p4 users -g dev' lists all the users belonging to the group 'dev', and 'p4 users -G dev' lists all users belonging to the group 'dev' or any of its sub-groups (searching all the way down the group hierarchy).

I can meet the first requirement (direct members) with 'p4 group -o dev' and pulling the users from the output.  But the second requirement (indirect members) is a bit more tricky.  I currently have a script to do this, recursively navigating down the group hierarchy, but it would be nice if it was supported out-the-box.

  • Pete Richens
  • Aug 17 2015
  • Attach files
  • Guest commented
    September 25, 2015 16:17

    That command exists already but is with 'p4 groups':

     

    p4 groups -i peter_richens

  • Pete Richens commented
    October 16, 2015 16:17

    Hello Sven.

    But 'p4 groups -i peter_richens' lists the groups that a user belongs to.

    I'm after the users that are contained within a group, including both direct members and indirect members via sub-groups.  The output should be sorted and duplicates removed (for the case when a user is a direct member and a member of a sub-group, or a member of multiple sub-groups).

    Pete

  • My Crystal commented
    11 Jan 09:43

    If you want, go over the videos below with your son, and then possibly use a piece of graph paper or paper to invent a game and try to get him to learn how to think of the state of each object, like Health-Points, or for a target Destroyed, it's a good starter:facebook video downloader

  • ang bate commented
    03 Apr 07:42

    That is really an amazing post. I loved reading it. thank you for sharing! earn to die 2