UserAddRequest22V2
Bases: OCIRequest
Request to add a user. The domain is required in the userId. The password is not required if external authentication is enabled.
The following elements are only used in AS data mode and will fail in XS data mode:
trunkAddressing
The following elements are only used in AS data mode and ignored in XS data mode:
nameDialingName
alternateUserId
isPlace
The following elements are only used in XS data mode and ignored in AS data mode:
allowVideo
The response is either SuccessResponse or ErrorResponse.
The following elements can only be used by a system administrator:.
allowVideo
The response is either SuccessResponse or ErrorResponse.
Attributes:
service_provider_id (str):
group_id (str):
user_id (str):
last_name (str):
first_name (str):
calling_line_id_last_name (str):
calling_line_id_first_name (str):
name_dialing_name (Optional[NameDialingName]):
hiragana_last_name (Optional[str]):
hiragana_first_name (Optional[str]):
phone_number (Optional[str]):
extension (Optional[str]):
calling_line_id_phone_number (Optional[str]):
password (Optional[str]):
department (Optional[DepartmentKey]):
language (Optional[str]):
time_zone (Optional[str]):
alias (Optional[List[str]]):
access_device_endpoint (Optional[AccessDeviceMultipleIdentityAndContactEndpointAdd22V2]):
trunk_addressing (Optional[TrunkAddressingMultipleContactAdd22]):
title (Optional[str]):
pager_phone_number (Optional[str]):
mobile_phone_number (Optional[str]):
email_address (Optional[str]):
yahoo_id (Optional[str]):
address_location (Optional[str]):
address (Optional[StreetAddress]):
network_class_of_service (Optional[str]):
alternate_user_id (Optional[List[AlternateUserIdEntry]]):
is_place (Optional[bool]):
Source code in src/mercury_ocip/commands/commands.py
99867 99868 99869 99870 99871 99872 99873 99874 99875 99876 99877 99878 99879 99880 99881 99882 99883 99884 99885 99886 99887 99888 99889 99890 99891 99892 99893 99894 99895 99896 99897 99898 99899 99900 99901 99902 99903 99904 99905 99906 99907 99908 99909 99910 99911 99912 99913 99914 99915 99916 99917 99918 99919 99920 99921 99922 99923 99924 99925 99926 99927 99928 99929 99930 99931 99932 99933 99934 99935 99936 99937 99938 99939 99940 99941 99942 99943 99944 99945 99946 99947 99948 99949 99950 99951 99952 99953 99954 99955 99956 99957 99958 99959 99960 99961 99962 99963 99964 99965 99966 99967 99968 99969 99970 99971 99972 99973 99974 99975 99976 99977 99978 99979 99980 99981 99982 99983 99984 99985 99986 99987 99988 99989 99990 99991 99992 99993 99994 99995 99996 99997 99998 99999 100000 100001 100002 100003 100004 100005 100006 100007 100008 100009 100010 100011 100012 100013 100014 100015 100016 100017 100018 100019 100020 100021 100022 100023 100024 100025 100026 100027 100028 100029 100030 100031 100032 100033 100034 100035 100036 100037 100038 100039 100040 100041 100042 | |
Responses
Example Usage
from mercury_ocip.client import Client
from mercury_ocip.commands import UserAddRequest22V2
client = Client()
command = UserAddRequest22V2(
service_provider_id=...,
group_id=...,
user_id=...,
last_name=...,
first_name=...,
calling_line_id_last_name=...,
calling_line_id_first_name=...,
name_dialing_name=...,
hiragana_last_name=...,
hiragana_first_name=...,
phone_number=...,
extension=...,
calling_line_id_phone_number=...,
password=...,
department=...,
language=...,
time_zone=...,
alias=...,
access_device_endpoint=...,
trunk_addressing=...,
title=...,
pager_phone_number=...,
mobile_phone_number=...,
email_address=...,
yahoo_id=...,
address_location=...,
address=...,
network_class_of_service=...,
alternate_user_id=...,
is_place=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("UserAddRequest22V2",
service_provider_id=...,
group_id=...,
user_id=...,
last_name=...,
first_name=...,
calling_line_id_last_name=...,
calling_line_id_first_name=...,
name_dialing_name=...,
hiragana_last_name=...,
hiragana_first_name=...,
phone_number=...,
extension=...,
calling_line_id_phone_number=...,
password=...,
department=...,
language=...,
time_zone=...,
alias=...,
access_device_endpoint=...,
trunk_addressing=...,
title=...,
pager_phone_number=...,
mobile_phone_number=...,
email_address=...,
yahoo_id=...,
address_location=...,
address=...,
network_class_of_service=...,
alternate_user_id=...,
is_place=...,
)
print(response)