Answer the question
In order to leave comments, you need to log in
How to restore admin access to Bitrix?
The project has lost admin access, but there is access to ftp.
How to restore or create a new user with admin rights in CMS 1C Bitrix?
Answer the question
In order to leave comments, you need to log in
CUser::Authorize
file /test.php
<?php
require($_SERVER['DOCUMENT_ROOT'] . '/bitrix/header.php');
global $USER;
$USER_ID = 1; //зачастую именно он админ
$USER->Authorize($USER_ID); // авторизуем
require($_SERVER['DOCUMENT_ROOT'] . '/bitrix/footer.php');
?>
First, try resetting your password. Unless, of course, there is access to the admin email.
FTP access will not help you.
You need access to the database. Then you can create a user there with admin rights or, alternatively, change the admin e-mail.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question