Secure all created user accounts
[oam.git] / solution / smo / common / identity / config.py
index 9db5de1..393d918 100644 (file)
@@ -202,9 +202,12 @@ def createUsers(token, realmConfig, authConfig):
             {
                 "type": "password",
                 "value": password,
-                "temporary": False
+                "temporary": True
             }
-        ]
+      ],
+      "requiredActions": [
+        "UPDATE_PASSWORD"
+      ]
     }
     createUser(token, realmConfig, systemUser)
 
@@ -232,7 +235,6 @@ def addUserRole(user: dict, role: dict, options: dict):
 
 # searches for the role of a given user
 
-
 def findRole(username: str, authConfig: dict, realmConfig: dict) -> dict:
     roleName = 'administration'
     for grant in authConfig['grants']: