realm icon indicating copy to clipboard operation
realm copied to clipboard

[feature] File permissions do not provide group name

Open nullmonk opened this issue 2 years ago • 2 comments

Describe the bug file permissions returned by file.list do not provide the group name as a string. sys.get_user only provides the membership groups as a string. This makes it effectively impossible to determine if the user is in the proper group to read a file.

Expected behavior file["group"] should be a string, or sys.get_user should return the GIDs of the groups

nullmonk avatar Feb 11 '24 01:02 nullmonk

There isn't a good way for us to add group name to file.list. Our current API for this doesn't really have a way to map group ID - > group name image image

Instead it just prints the group names as a string.

hulto avatar Feb 24 '24 22:02 hulto

I think sys.get_user already returns gid image

hulto avatar Feb 24 '24 22:02 hulto