Multiple Users and Permissions
![]()
PSPDFKit Server has been deprecated and replaced by Document Engine. All PSPDFKit Server and PSPDFKit for Web Server-Backed licenses will work as before and be supported until 15 May 2024 (we will contact you about license migration). To start using Document Engine, refer to the migration guide. With Document Engine, you’ll have access to robust new capabilities (read the blog for more information).
If you need multiple people to annotate independent copies of the same document, you don’t need to upload the document multiple times. Instead, you can restrict users’ access to specific content using Collaboration Permissions.
-
Your service provides your web application with JWTs for authentication for two different users. Both tokens reference the same document and layer but have different permissions. The first token allows its user to create annotations and view their own annotations. The second token allows its user to create annotations and view all annotations in the layer.
-
The first user creates an annotation in the layer, which is saved in the database by PSPDFKit Server.
-
The annotation ID is returned to both Web SDK instances: Both the first and second user can see the newly created annotation.
-
The second user creates an annotation.
-
The annotation ID is returned only to the second Web SDK instance, because the first user doesn’t have permission to view annotations of other users.