MCPcopy
hub / github.com/jumpserver/jumpserver / add_all_users

Method add_all_users

apps/users/api/group.py:28–32  ·  view source on GitHub ↗
(self, _)

Source from the content-addressed store, hash-verified

26
27 @action(methods=['post'], detail=True, url_path='add-all-users')
28 def add_all_users(self, _):
29 instance = self.get_object()
30 users = User.get_org_users().exclude(groups__id=instance.id)
31 instance.users.add(*users)
32 return Response(status=status.HTTP_200_OK)

Callers

nothing calls this directly

Calls 3

get_org_usersMethod · 0.80
addMethod · 0.80
get_objectMethod · 0.45

Tested by

no test coverage detected