Skip to main content
1-Visitor
July 7, 2015
Solved

How to get non-members from a sandbox?

  • July 7, 2015
  • 2 replies
  • 2418 views

Hi,

I'm trying to print a list off all non-members within a sandbox into a textfile. I've tried 'si viewnonmembers' but got this error message in return:

MKS124814: Cannot show view information: MKS125335: Out of tree members and subprojects (not located in the project directory or a subdirectory of the project directory) are not supported.

The errormessage doesn't seem to fit my sandbox so I would be grateful if anyone has a clue what went wrong. By the way, if I am using the GUI (Sandbox -> Views -> view non-members)   this works fine.

Thanks!

    Best answer by fpastano

    Before executing the command, you should jump into your local sandbox

    cd C:\Users\USERNAME\MKS\SANDBOXNAME     (or wherever your sandbox is placed)

    After that, you can use the viewnonmembers command

    si viewnonmembers > C:\Users\USERNAME\Desktop\nonmembers.txt

    I hope it helps!

    BR

    2 replies

    fpastano1-VisitorAnswer
    1-Visitor
    July 7, 2015

    Before executing the command, you should jump into your local sandbox

    cd C:\Users\USERNAME\MKS\SANDBOXNAME     (or wherever your sandbox is placed)

    After that, you can use the viewnonmembers command

    si viewnonmembers > C:\Users\USERNAME\Desktop\nonmembers.txt

    I hope it helps!

    BR

    sknopp1-VisitorAuthor
    1-Visitor
    July 7, 2015

    Yes, it works. Thanks a lot!

    1-Visitor
    July 9, 2015

    Or use the si viewnonmembers command with the options --sandbox and --cwd to avoid having to change the directory.

    Example:

    si viewnonmembers --sandbox="D:\MATLAB\Sandboxes\AVLab\project.pj" --cwd="D:\MATLAB\Sandboxes\AVLab"