minio / mc

Unix like utilities for object store
https://min.io/download
GNU Affero General Public License v3.0
2.86k stars 548 forks source link

policy entities now print group memberships per user #4961

Closed taran-p closed 2 months ago

taran-p commented 4 months ago

Community Contribution License

All community contributions in this pull request are licensed to the project maintainers under the terms of the Apache 2 license. By creating this pull request I represent that I have the right to license the contributions to the project maintainers under the Apache 2 license.

Description

mc idp ldap policy entities now prints group memberships for queried users. The combined effective policies of the user+group is also printed as "Effective Policies". This also occurs for mc admin policy entities

Currently there are two options for displaying this information: OPTION 1 - Delimited by commas with wrapping at 80 characters image

OPTION 2 - All entries on separate lines image

Motivation and Context

minio/minio#20052

How to test this PR?

Types of changes

Checklist:

donatello commented 3 months ago

I'm ok with option 2 as it is mainly for presentation. Programmatic access is available via the json option.