MCPcopy Create free account
hub / github.com/slackapi/python-slack-sdk / create_user

Method create_user

slack_sdk/scim/v1/client.py:135–142  ·  view source on GitHub ↗
(self, user: Union[Dict[str, Any], User])

Source from the content-addressed store, hash-verified

133 return ReadUserResponse(self.api_call(http_verb="GET", path=f"Users/{quote(id)}"))
134
135 def create_user(self, user: Union[Dict[str, Any], User]) -> UserCreateResponse:
136 return UserCreateResponse(
137 self.api_call(
138 http_verb="POST",
139 path="Users",
140 body_params=user.to_dict() if isinstance(user, User) else _to_dict_without_not_given(user),
141 )
142 )
143
144 def patch_user(self, id: str, partial_user: Union[Dict[str, Any], User]) -> UserPatchResponse:
145 return UserPatchResponse(

Callers 3

test_usersMethod · 0.95
test_user_crudMethod · 0.45
test_group_crudMethod · 0.45

Calls 4

api_callMethod · 0.95
UserCreateResponseClass · 0.85
to_dictMethod · 0.45

Tested by 3

test_usersMethod · 0.76
test_user_crudMethod · 0.36
test_group_crudMethod · 0.36