Access web viewer api's via zowe cli without admin access - 14.0 Web Viewer
search cancel

Access web viewer api's via zowe cli without admin access - 14.0 Web Viewer

book

Article ID: 218789

calendar_today

Updated On:

Products

Output Management Web Viewer

Issue/Introduction

When using the CA View plugin for Zowe, commands fail with message “Requested repository group % not found” when using a non-admin user.  For example:

>zowe caview list repositories
Failed to list repositories.
Error Details:
Requested repository group % not found

The following mMessages can be seen in the log: 
CAHVS0116I User <user> login requested                          
CAHVS0125E Requested repository group % not found                
CAHVS0109I Repository returned 0 entries in 17 ms, status = ERROR

The error occurs because non-admin users are required to provide a repository group when the repository group feature is enabled.  The repository group feature is enabled when there are one or more repository groups defined to Web Viewer.

The CA View plugin for Zowe does not allow a repository group to be specified.

Environment

Release : 14.0

Component : CA Output Management Web Viewer

Resolution

For non-admins the other option is to set a default repository group in the ConfigFile.cfg.  For example, to set the default repository group to a group named DefaultGroup:

// Specify the default repository group for non-admin users who do not

// specify a group at login.

DEFAULTGROUPNAME = "DefaultGroup";

The default repository group applies to all non-admin users through all interfaces (including the UI and Zowe CLI).  But its only used when a repository group is not specified:

-          From the UI that’s when a non-admin tries to login and leaves the repository group box blank (repository group selector text mode) or sets it to “(None)” (repository group selector dropdown mode).

-          Always from the Zowe CLI for a non-admin.

The security check is still done when the default repository group is used.  Using the example above, if the non-admin tries to login without a repository group it will use DefaultGroup.  If they do not have access to that group via security the login will still fail – but instead of a group not found message you will get a group not authorized message.

Additional Information

Removed customer? userid from message 10/12/2023 Nancy Lipp