getProfilePictureUrl([user]) Last updated: 26. Apr 2026

API only function

This function retrieves the URL of a user's profile picture from the system. It returns a string containing the direct link to the image, which can be used to display the user's profile picture in applications or web interfaces.

See also: writeJwt, deleteJwt, denyAccess, logOut, flagActivity — and Custom JWT login example.

Parameters

Name Type Description
user (optional) string If not specified, defaults to current user.

Returns

Link to profile image, or null if not available.

Example

Code example (JS)

JS is normal JavaScript either running in the browser or on the Docly™ server.
// Look up a profile picture URL by email (returns null if none is set)
let email = "test@docly.net";
let url = docly.getProfilePictureUrl(email);

return url;


// In a .hash display template you can render the image directly:
// <img src="#docly.getProfilePictureUrl(request.Jwt.username)#" alt="Profile" />