Hi @Ayan Usmani
Password requirements:
Cited from https://learn.microsoft.com/en-us/azure/active-directory/authentication/concept-sspr-policy
Python:
import random
import string
# get random password pf length 8 with letters, digits, and symbols
characters = string.ascii_letters + string.digits + string.punctuation
password = ''.join(random.choice(characters) for i in range(8))
print(password)
Cited from https://pynative.com/python-generate-random-string/
Reference to Create User (Graph API):
https://learn.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0&tabs=http
-------------------------------------------
If this is helpful please accept answer.