Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be able to filter users on admin property #1132

Closed
Dimfacion opened this issue Jun 21, 2024 · 0 comments
Closed

Be able to filter users on admin property #1132

Dimfacion opened this issue Jun 21, 2024 · 0 comments
Assignees
Labels
bug use for describing something not working as expected solved The issue has been solved
Milestone

Comments

@Dimfacion
Copy link
Member

Dimfacion commented Jun 21, 2024

Description

For our internal needs, we need to be able to filter out the list of users on whether or not they are admins.

Environment

  1. OS (where OpenBAS server runs): All
  2. OpenBAS version: OBAS 1.1.0
  3. OpenBAS client: Rest API
  4. Other environment details:

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. Make a call to api/users/search with the following body :
{
    "sorts":[
        ],
    "filterGroup": 
        {
            "filters": [
                {
                    "key":"user_admin",
                    "values":["true"],
                    "mode": "and",
                    "operator": "eq"
                }
            ],
            
            "mode": "and"
        }
    ,    
    "textSearch":"",
    "page":0,
    "size":100
}

Expected Output

Only the users that are admins

Actual Output

500 Internal Server Error

Additional information

Screenshots (optional)

@Dimfacion Dimfacion added bug use for describing something not working as expected needs triage use to identify issue needing triage from Filigran Product team labels Jun 21, 2024
@jborozco jborozco removed the needs triage use to identify issue needing triage from Filigran Product team label Jun 21, 2024
@jborozco jborozco added this to the Bugs backlog milestone Jun 21, 2024
@Dimfacion Dimfacion self-assigned this Jun 21, 2024
@SamuelHassine SamuelHassine added the solved The issue has been solved label Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug use for describing something not working as expected solved The issue has been solved
Projects
None yet
Development

No branches or pull requests

3 participants