What is the best approach to obtaining the current user's groups in Swift for macOS?
I have come across NSUserName() for obtaining the current user's username, but based on searching and finding absolutely nothing online, I'm under the impression that such a function doesn't exist in regards to user groups.
I'm assuming I will have to leverage something outside of Swift. If that is the case, any suggestions on what I should be leveraging?