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

See all connected users via the cli #7448

Closed
freddidierRTE opened this issue Oct 24, 2024 · 1 comment · Fixed by #7546
Closed

See all connected users via the cli #7448

freddidierRTE opened this issue Oct 24, 2024 · 1 comment · Fixed by #7546
Assignees
Labels
Enhancement New feature

Comments

@freddidierRTE
Copy link
Contributor

freddidierRTE commented Oct 24, 2024

Introduce a new command :

opfab connected-user list

This command shall show an array of the connected users representing the information of the connected user available in the json response of the corresponding endpoint

The number of connected user shall be displayed

Example

JSON response

[
{"login":"admin","entitiesConnected":["ENTITY2_FR","ENTITY_FR","ENTITY1_FR"],"groups":["ADMIN"]},
{"login":"operator1_fr","entitiesConnected":["ENTITY_FR","ENTITY1_FR"],"groups":["Maintainer","Dispatcher"]}
]

Result of the CLI :

Number of connected users : 2

Login : admin |  entitiesConnected : ENTITY2_FR , ENTITY_FR ,ENTITY1_FR | groups : ADMIN 
...

Do not forget to adjust completion and help command

@freddidierRTE freddidierRTE added the Enhancement New feature label Oct 24, 2024
@vlo-rte vlo-rte self-assigned this Oct 28, 2024
vlo-rte added a commit that referenced this issue Nov 18, 2024
@vlo-rte vlo-rte linked a pull request Nov 18, 2024 that will close this issue
vlo-rte added a commit that referenced this issue Nov 18, 2024
@freddidierRTE
Copy link
Contributor Author

Modification of the issue :

instead of :

Number of connected users : 2

Login : admin |  entitiesConnected : ENTITY2_FR , ENTITY_FR ,ENTITY1_FR | groups : ADMIN 
...

Do

Number of connected users : 2
Login | entitiesConnected | groups
admin | ENTITY2_FR , ENTITY_FR ,ENTITY1_FR | ADMIN 
...

vlo-rte added a commit that referenced this issue Nov 19, 2024
freddidierRTE pushed a commit that referenced this issue Nov 19, 2024
@github-project-automation github-project-automation bot moved this from In review to Done in OperatorFabric Release 4.6 Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants