Neo4j Graph Database Fundamentals · 강의

사용자 관리 및 역할

Neo4j에서 사용자를 생성하고 관리하며 역할을 할당하고 사용자 지정 접근 권한을 정의하는 방법을 학습합니다.

레슨 1/411개 단계

사용자 관리 및 역할은(는) CoddyKit의 무료 Neo4j Graph Database Fundamentals 강의입니다. 이것은 4개 중 1번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 AI 튜터와 함께 브라우저에서 직접 실습할 수 있습니다. 이 강의는 Neo4j Graph Database Fundamentals 학습 경로의 일부이며, 진행 상황이 웹과 CoddyKit 앱에 동기화됩니다. Neo4j Graph Database Fundamentals 강의에는 총 4개의 강의가 포함되어 있습니다.

이 강의의 일부는 아직 번역되지 않았으며 영어로 표시됩니다.

Secure Your Graph Data

Welcome to securing your Neo4j database! Just like any valuable asset, your graph data needs protection.

This lesson introduces the essential steps to manage who can access and modify your Neo4j database.

Control Access to Your Data

Why bother with user management? Imagine a bank vault without proper access control – chaos!

  • Security: Prevent unauthorized access.
  • Accountability: Track who does what.
  • Compliance: Meet regulatory requirements.

It's about making sure only the right people have the right permissions.

AuthN vs. AuthZ

These terms are often confused, but they're distinct:

  • Authentication (AuthN): Who are you? This verifies a user's identity (e.g., username and password).
  • Authorization (AuthZ): What can you do? This determines what actions an authenticated user is allowed to perform.

First, we prove who we are (AuthN), then the system decides what we can do (AuthZ).

Meet the Default Admin

When you first install Neo4j, a default administrative user named neo4j is created.

  • It has full administrative privileges.
  • The initial password is also neo4j.
  • Important: Always change this default password immediately after installation for security!

This user is your entry point to managing the database.

Adding New Users

To add new individuals or applications to your database, you'll create new user accounts.

Each user needs a unique username and a strong password. This ensures proper authentication before any actions are taken.

Let's see how to do this using Cypher, Neo4j's query language.

Creating Users with Cypher

The CREATE USER command is straightforward. Remember to choose a secure password!

Try running this example in your Neo4j Browser or cypher-shell:

CREATE USER 'alice' SET PASSWORD 'securePassword123';

Changing Passwords

Passwords should be changed regularly, and users might forget them. Neo4j provides commands to manage user passwords.

  • Change your own password: ALTER CURRENT USER SET PASSWORD 'newPassword';
  • Change another user's password (admin only): ALTER USER 'alice' SET PASSWORD 'anotherNewPass';

Always use strong, unique passwords!

What are Roles?

Roles are collections of privileges that can be assigned to users. Instead of giving individual permissions to each user, you assign them a role.

Neo4j comes with several built-in roles, such as:

  • admin: Full administrative access.
  • architect: Can create/manage schema (nodes, relationships, properties).
  • publisher: Can write data.
  • reader: Can only read data.

This simplifies managing permissions across many users.

Granting Roles

Once you've created users and understand roles, the next step is to grant specific roles to users. A user can have multiple roles.

Use the GRANT ROLE command to assign roles. To remove a role, use REVOKE ROLE.

Let's grant our new user 'alice' the 'reader' role:

GRANT ROLE reader TO alice;

Check Your Understanding

You've learned how to create users and assign roles. Let's test your knowledge!

Lesson Summary

Great job! In this lesson, we covered the fundamentals of user management and roles in Neo4j:

  • The importance of authentication and authorization.
  • How to create new users using CREATE USER.
  • Managing user passwords with ALTER USER.
  • Understanding built-in roles like admin, reader, and publisher.
  • Assigning roles to users with GRANT ROLE.

This knowledge is crucial for securing your graph database! Next, we'll dive deeper into defining custom access privileges.

무료로 시작

AI 튜터와 함께 Neo4j Graph Database Fundamentals을(를) 배우세요 — 무료

브라우저에서 실제 코드를 작성하고 실행하며, 24/7 AI 튜터로부터 즉각적인 도움을 받고, 웹이나 앱에서 중단한 부분부터 계속 학습하세요.

코스
12
레슨
48

자주 묻는 질문

“사용자 관리 및 역할” 강의는 무료인가요?

네 — “사용자 관리 및 역할” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 Neo4j Graph Database Fundamentals 강의 전체를 잠금 해제할 수 있습니다. Neo4j Graph Database Fundamentals 강의에는 총 4개의 강의가 포함되어 있습니다.

“사용자 관리 및 역할”에서 뭘 배우나요?

Neo4j에서 사용자를 생성하고 관리하며 역할을 할당하고 사용자 지정 접근 권한을 정의하는 방법을 학습합니다. 브라우저에서 직접 실행하는 실습 코드로 Neo4j Graph Database Fundamentals을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.

Neo4j Graph Database Fundamentals을(를) 시작하는 데 경험이 필요한가요?

사전 경험은 필요하지 않습니다. CoddyKit의 Neo4j Graph Database Fundamentals은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 1번째 강의입니다.

“사용자 관리 및 역할” 강의는 얼마나 걸리나요?

대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.

이 Neo4j Graph Database Fundamentals 강의에서 코드를 작성하고 실행할 수 있나요?

네. 모든 Neo4j Graph Database Fundamentals 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.

이 강의의 모든 강의

  1. 사용자 관리 및 역할
  2. 인증 및 권한 부여
  3. Neo4j 배포 보안 강화
  4. 세분화된 접근 제어와 감사
← Neo4j Graph Database Fundamentals(으)로 돌아가기