File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ def __init__(
34
34
sso_app_ids : Optional [List [str ]] = None ,
35
35
password : Optional [UserPassword ] = None ,
36
36
seed : Optional [str ] = None ,
37
+ status : Optional [str ] = None ,
37
38
):
38
39
self .login_id = login_id
39
40
self .email = email
@@ -52,6 +53,7 @@ def __init__(
52
53
self .sso_app_ids = sso_app_ids
53
54
self .password = password
54
55
self .seed = seed
56
+ self .status = status
55
57
56
58
57
59
class User (AuthBase ):
@@ -1797,6 +1799,8 @@ def _compose_create_batch_body(
1797
1799
hashed_password = hashed_password ,
1798
1800
seed = user .seed ,
1799
1801
)
1802
+ if user .status is not None :
1803
+ uBody ["status" ] = user .status
1800
1804
usersBody .append (uBody )
1801
1805
1802
1806
body = {"users" : usersBody , "invite" : True }
Original file line number Diff line number Diff line change @@ -309,6 +309,7 @@ def test_invite_batch(self):
309
309
),
310
310
),
311
311
seed = "aaa" ,
312
+ status = "invited" ,
312
313
)
313
314
resp = self .client .mgmt .user .invite_batch (
314
315
users = [user ],
@@ -349,7 +350,8 @@ def test_invite_batch(self):
349
350
}
350
351
},
351
352
"seed" : "aaa" ,
352
- }
353
+ "status" : "invited" ,
354
+ },
353
355
],
354
356
"invite" : True ,
355
357
"inviteUrl" : "invite.me" ,
You can’t perform that action at this time.
0 commit comments