How do I authorize a user as CD Admin in the database?

If you have a empower version lower than 8.6

 

 

By following the steps below, you can add a user as Admin User based on his PrincipalId.

(If there is no CD Admin already or anymore)

1. Open the table: tbl_Users 

Wie_berechtige_ich_einen_User_als_CD_Admin_in_der_Datenbankmceclip1.png

Right click on tbl-Users and select Select Top 1000 Rows.

2. Find the desired user with the following SQL statement

SELECT TOP (1000) [PrincipalID]
,[FirstName]
,[LastName]
,[LastModified]
,[LastLogin]
,[IsDisabled]
,[IsSynced]
,[LoginName]
,[DeletedOn]
FROM [dbo].[tbl_Users]
Where LastName = 'UserName' --> Name of the desired user

3. Copy the PrincipalId of the user

Wie_berechtige_ich_einen_User_als_CD_Admin_in_der_Datenbankmceclip26574142955761310613.png

4. Execute the following function in the SQL Management Studio:

Programmability-->

StoredProcedures-->

spAddAdminUserPrincipal 

Right-click on dbo.spAddAdminUserPrincipal and execute theStored Procedure

Wie_berechtige_ich_einen_User_als_CD_Admin_in_der_Datenbankmceclip33108407133314185552.png

5. Insert the PrincipalId of the user 

Attention: The PincipalId must be set in quotation marks

Wie_berechtige_ich_einen_User_als_CD_Admin_in_der_Datenbankmceclip4.png

In the field Value for the parameter @IsCDAdmin insert the value 1, thus the user gets the cdAdmin rights.

Click OK: Now the user should have CDAdmin rights.

Do you still have questions? 

If you have further questions, please do not hesitate to contact us.

 
 

empower version 8.6 or higher

By following the steps below, you can add a user as Admin User based on his PrincipalId.

(If there is no CD Admin already or anymore)

  1.  Open the table: core.PrincipalUsers
    Right-click on core.PrincipalUsers and select Select Top 1000 Rows.

    Wie_berechtige_ich_einen_User_als_CD_Admin_in_der_Datenbankmceclip0.png
  2. Find the wanted user with the following SQL statement. For example:
    SELECT TOP (1000) [PrincipalId]
    ,[FirstName]
    ,[LastName]
    ,[LoginName]
    ,[IsSynced]
    ,[IsDisabled]
    ,[LastLoginOn]
    ,[LastModifiedOn]
    ,[DeletedOn]
    FROM [core].[PrincipalUsers]
    WHERE LastName = 'UserName' --> the name of the user
  3. Copy the PrincipalId of the user

    Wie_berechtige_ich_einen_User_als_CD_Admin_in_der_Datenbankmceclip26574142955761310613.png

  4. Navigate to

    Programmability-->

    StoredProcedures-->

    core.spAddAdminUserPrincipal 

    Wie_berechtige_ich_einen_User_als_CD_Admin_in_der_Datenbankmceclip12136780963793230488.png


  5. Insert the PrincipalId of the user 

    Important: The PrincipalId must be set in quotation marks

    Wie_berechtige_ich_einen_User_als_CD_Admin_in_der_Datenbankmceclip42556624185111779407.png

    Insert the value 1 in the Value field for the @IsCDAdmin parameter, so the user gets the cdAdmin rights.

    Click the OK button: Now the user should have CD Admin rights.

    Still have any questions? 

    If you have any further questions, please do not hesitate to contact us.

    Support kontaktieren

Was this article helpful?

/

Comments

0 comments

Article is closed for comments.