Error fetching Userroles : Forbidden

Not applicable

while clicking on display list of API proxies/products or other artifacts, I am getting

Forbidden error. I have logged in as admin user only. Kindly suggest the solution and reason of this error.

0 7 303
7 REPLIES 7

Not applicable

getting one more error If I click on some admin option :

Error fetching UserrolesInsufficient permissions.

Yes, These errors are related due to LDAP issues we see in trial orgs. We will keep you posted.

@Vinod Garg , We currently see ldap server issues with trial orgs. We will keep you posted.

Not applicable

@Anil Sagar

Still issue persists. Is LDAP issue resolved? any update

jhans
New Member

@Vinod Garg LDAP issues are solved now. I don't see your email ID assigned to any org as orgadmin. Can you let me know for which org you were an orgadmin? We will add you back.

@Jagjyot Hans , Sent org name details in private chat.

Not applicable

Assuming you have access to the management server, you can run a series of curl commands to identify yourself in the organization and role permissions in that organization using the organization ID and PW for your implementation:

Get your organization:

curl -v -u <ID:PW> http://localhost:8080/v1/o/

Get your roles:

curl -v http://localhost:8080/v1/o/<organization name>/userroles/ -u <ID:PW>

Identify the users in the roles:

curl -v http://localhost:8080/v1/o/<organization name>/userroles/<role name>/users" -u <ID:PW>

Once identified, you can obtain the permissions by resource path associate to the organization and role you seek:

curl http://localhost:8080/v1/o/<organization name>/userroles/<role name>/permissions -u <ID:PW>

A sample response:

{ "resourcePermission" : [ { "organization" : "<your org name>", "path" : "/environments", "permissions" : [ "get" ] }, { "organization" : "<your org name>", "path" : "/environments/*", "permissions" : [ "get" ] } }

These are the permissions to the resource path utilized by the role associated with your email id.

If your company has defined custom roles and permissions for the organization / role combination, you may have an improper permission definition for the role in which you belong.