realm
realm copied to clipboard
[feature] File permissions do not provide group name
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
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
Instead it just prints the group names as a string.
I think sys.get_user already returns gid