MCPcopy Create free account
hub / github.com/pydio/cells / SearchUser

Method SearchUser

python/test.py:50–74  ·  view source on GitHub ↗
(self, request, context)

Source from the content-addressed store, hash-verified

48
49class UserProvider(cells_idm_pb2_grpc.UserServiceServicer):
50 def SearchUser(self, request, context):
51 print("Doing search user")
52 yield cells_idm_pb2.SearchUserResponse(
53 User=cells_idm_pb2.User(
54 Uuid="admin",
55 GroupPath="python",
56 Attributes={
57 "profile": "admin",
58 },
59 Roles=[
60 cells_idm_pb2.Role(
61 Uuid="ROOT_GROUP",
62 ),
63 cells_idm_pb2.Role(
64 Uuid="ADMINS"
65 ),
66 cells_idm_pb2.Role(
67 Uuid="ee43ecf4-6c9e-4eab-ba85-6fdf746c3724",
68 ),
69 ],
70 Login="admin",
71 IsGroup=False,
72
73 )
74 )
75
76 def CountUser(self, request, context):
77 print("Counting")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected