> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFAccountManagementBanInfo

> PFAccountManagementBanInfo data model. Contains information for a ban.

PFAccountManagementBanInfo data model. Contains information for a ban.

## Syntax

```cpp theme={null}
typedef struct PFAccountManagementBanInfo {  
    bool active;  
    const char* banId;  
    time_t const* created;  
    time_t const* expires;  
    const char* IPAddress;  
    const char* playFabId;  
    const char* reason;  
    const char* userFamilyType;  
} PFAccountManagementBanInfo;  
```

### Members

**`active`**   bool

The active state of this ban. Expired bans may still have this value set to true but they will have no effect.

**`banId`**   const char\*<br />*is null-terminated*

(Optional) The unique Ban Id associated with this ban.

**`created`**   time\_t const\*<br />*may be nullptr*

(Optional) The time when this ban was applied.

**`expires`**   time\_t const\*<br />*may be nullptr*

(Optional) The time when this ban expires. Permanent bans do not have expiration date.

**`IPAddress`**   const char\*<br />*is null-terminated*

(Optional) The IP address on which the ban was applied. May affect multiple players.

**`playFabId`**   const char\*<br />*is null-terminated*

(Optional) Unique PlayFab assigned ID of the user on whom the operation will be performed.

**`reason`**   const char\*<br />*is null-terminated*

(Optional) The reason why this ban was applied.

**`userFamilyType`**   const char\*<br />*is null-terminated*

(Optional) The family type of the suer that is included in the ban.

## Requirements

**Header:** PFAccountManagementTypes.h

## See also

[PFAccountManagementTypes members](/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members)
