create_user
async
¶
create_user(
username: UsernameType,
given_name: UserAttributeValueType,
surname: UserAttributeValueType,
password: PasswordType,
*,
config_overrides: Optional[AsyncWorkDocsClientConfig] = None,
organization_id: Optional[IdType] = None,
email_address: Optional[EmailAddressType] = None,
time_zone_id: Optional[TimeZoneIdType] = None,
storage_rule: Optional[StorageRuleType] = None,
authentication_token: Optional[AuthenticationHeaderType] = None,
) -> CreateUserResponse
Creates a user in a Simple AD or Microsoft AD directory. The status of a newly created user is "ACTIVE". New users can access Amazon WorkDocs.
Parameters:
-
organization_id(Optional[IdType], default:None) –The ID of the organization.
-
username(UsernameType) –The login name of the user.
-
email_address(Optional[EmailAddressType], default:None) –The email address of the user.
-
given_name(UserAttributeValueType) –The given name of the user.
-
surname(UserAttributeValueType) –The surname of the user.
-
password(PasswordType) –The password of the user.
-
time_zone_id(Optional[TimeZoneIdType], default:None) –The time zone ID of the user.
-
storage_rule(Optional[StorageRuleType], default:None) –The amount of storage for the user.
-
authentication_token(Optional[AuthenticationHeaderType], default:None) –Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.
Raises:
-
EntityAlreadyExistsException–The resource already exists.
-
FailedDependencyException–The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.
-
ServiceUnavailableException–One or more of the dependencies is unavailable.
-
UnauthorizedOperationException–The operation is not permitted.
-
UnauthorizedResourceAccessException–The caller does not have access to perform the action on the resource.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workdocs/_services/async_work_docs.py
905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 | |