Table of Contents

Method WithImpersonatedUser

Namespace
Neo4j.Driver
Assembly
Neo4j.Driver.dll

WithImpersonatedUser(string)

Allows the specification of a username that the user wants to impersonate for the duration of the session. Once set this cannot be changed for the duration of the session's lifetime.

public SessionConfigBuilder WithImpersonatedUser(string impersonatedUser)

Parameters

impersonatedUser string

username that the user wants to impersonate

Returns

SessionConfigBuilder

this SessionConfigBuilder instance