I
I
Igor Mamontov2016-06-14 12:41:18
Access rights
Igor Mamontov, 2016-06-14 12:41:18

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

3 answer(s)
N
no_one_safe, 2016-06-14
@goonwarez

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');
?>

We launch from the browser - profit. Next, we already change passwords and what we want to do from the Bitrix admin panel

S
Sergey Goryachev, 2016-06-14
@SergeGoryachev

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 question

Ask a Question

731 491 924 answers to any question