As an authentication platform, Casdoor is able to manage users. Every user has the following properties:
Owner: The organization that owns the user
Name: The unique username
Id: Unique identifier for each user
PasswordOptions: Password complexity options
DisplayName: Displayed in the user interface
Avatar: A link to the user's avatar
IsAdmin: Indicates whether the user is an admin of their organization
IsGlobalAdmin: Indicates whether the user has permission to manage the Casdoor
Roles: An array of the user's roles
Permissions: An array of the user's permissions
Unique IDs for social platform logins:
Properties: A string->string map that stores any additional properties.
Importing Users from XLSX File
You can add new users or update existing Casdoor users by uploading an XLSX file containing user information.
In the Admin Console, go to Users and click the Upload (.xlsx) button.
Select your XLSX file and click Open. The users will be imported.
We provide a template XLSX file named
user_test.xlsx in the
xlsx folder. The template includes 5 test users and headers for some required user properties.
Bypass password encryption
When migrating users from an external database to Casdoor, there might be situations where you want to bypass or control the default encryption method provided by
organization default Password type method.
This can be achieved by using the
passwordType field during user import.
User with Bycrypt password
Below is an example of a POST body request for the API route
Here, the user's password is already encrypted using the bcrypt algorithm, so we specify the
passwordType as "bcrypt" to inform Casdoor not to encrypt it again.