Skip to main content
Gets all bans for a user.

Syntax

Parameters

titleEntityHandle   PFEntityHandle PFEntityHandle for a title Entity obtained using PFAuthenticationGetEntityWithSecretKeyAsync. request   PFAccountManagementGetUserBansRequest* Populated request object. async   XAsyncBlock*
Inout
XAsyncBlock for the async operation.

Return value

Type: HRESULT Result code for this API operation.

Remarks

This API is available on Win32, Linux, and macOS. Get all bans for a user, including inactive and expired bans. See also ServerBanUsersAsync, ServerRevokeAllBansForUserAsync, ServerRevokeBansAsync, ServerUpdateBansAsync. When the asynchronous task is complete, call PFAccountManagementServerGetUserBansGetResultSize and PFAccountManagementServerGetUserBansGetResult to get the result.

Requirements

Header: PFAccountManagement.h

See also

PFAccountManagement members
Last modified on August 1, 2026