How to restore Uid#1 if deleted from developer portal

Hi,


What are the issues we foresee if the UID#1 is deleted from developer portal. And how can we restore/create it.

Regards,

Solved Solved
1 3 377
1 ACCEPTED SOLUTION

kengilbert-1
Participant II

Hey Pratyush,

UID 1 cannot be deleted from the developer portal from the GUI. There are safety measures in place that prevent you from unintentionally deleting this user.

Removing UID 1 is not recommended because this user is the root or "super" user that will always have all permissions. It's always recommended to have this user as a way to enable critical permissions that are not enabled for the administrator role.

If you happen to delete UID 1, you could try recreating it via an SQL query. You can find more information about the query here.

View solution in original post

3 REPLIES 3

kengilbert-1
Participant II

Hey Pratyush,

UID 1 cannot be deleted from the developer portal from the GUI. There are safety measures in place that prevent you from unintentionally deleting this user.

Removing UID 1 is not recommended because this user is the root or "super" user that will always have all permissions. It's always recommended to have this user as a way to enable critical permissions that are not enabled for the administrator role.

If you happen to delete UID 1, you could try recreating it via an SQL query. You can find more information about the query here.

Not sure , but this got deleted. And have already added a new user using the link you have given below. Is there any versioning of database done by the portal that we can update to?

What is the recommended way for versioning the codes/databases apart from the given git repo.

Depending on your hosting provider, there may be a database backup option that will take backups of your database automatically.

Pantheon has a full site backup option you may be able to use to make copies of the site in a known state. You can read more about it here.