MCPcopy Create free account
hub / github.com/StackStorm/st2 / get_user_groups

Method get_user_groups

st2auth/st2auth/backends/base.py:48–56  ·  view source on GitHub ↗

Retrieve a list of groups a particular user is a member of. Note: Not all the auth backends may implement this. :rtype: ``list`` of ``str``

(self, username)

Source from the content-addressed store, hash-verified

46 raise NotImplementedError("get_user() not implemented for this backend")
47
48 def get_user_groups(self, username):
49 """
50 Retrieve a list of groups a particular user is a member of.
51
52 Note: Not all the auth backends may implement this.
53
54 :rtype: ``list`` of ``str``
55 """
56 raise NotImplementedError("get_groups() not implemented for this backend")

Callers 1

handle_authMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected