> ## 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.

# XUserResolvePrivilegeWithUiAsync

> XUserResolvePrivilegeWithUiAsync

# XUserResolvePrivilegeWithUiAsync

Displays a user interface to allow a user to resolve any issues related to the specified privilege.

## Syntax

```cpp theme={null}
HRESULT XUserResolvePrivilegeWithUiAsync(  
         XUserHandle user,  
         XUserPrivilegeOptions options,  
         XUserPrivilege privilege,  
         XAsyncBlock* async  
)  
```

### Parameters

*user*   \_In\_\
Type: XUserHandle

The user that we are displaying the resolution UI to.

*options*   \_In\_\
Type: [XUserPrivilegeOptions](/reference/system/xuser/enums/xuserprivilegeoptions)

User privilege options.

*privilege*   \_In\_\
Type: [XUserPrivilege](/reference/system/xuser/enums/xuserprivilege)

The required user privilege.

*async*   \_Inout\_\
Type: [XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)

An [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) for polling for the call's status and retrieving call results.

### Return value

Type: HRESULT

HRESULT success or error code.\
For a list of error codes, see [Error Codes](/reference/errorcodes).

## Remarks

To retrieve the result of a call to XUserResolvePrivilegeWithUiAsync, call [XUserResolvePrivilegeWithUiResult](/reference/system/xuser/functions/xuserresolveprivilegewithuiresult).

The following example shows how to use the XUserResolvePrivilegeWithUiAsync function.

```cpp theme={null}
HRESULT hr = XUserResolvePrivilegeWithUiAsync(
  userHandle
  resolveUserPrivilegeOptions,
  privilegeToResolve,
  asyncBlock);
```

## Requirements

**Header:** XUser.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, Steam Deck, XBOX One family consoles and XBOX Series consoles

## Conceptual documentation

* [Using the Game Chat 2 C++ API](/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2)

## See also

[XUser](/reference/system/xuser/xuser_members)

[XUserResolvePrivilegeWithUiResult](/reference/system/xuser/functions/xuserresolveprivilegewithuiresult)


## Related topics

- [XUserResolvePrivilegeWithUiResult](/reference/system/xuser/functions/xuserresolveprivilegewithuiresult.md)
- [XUserPrivilege](/reference/system/xuser/enums/xuserprivilege.md)
- [XUserCheckPrivilege](/reference/system/xuser/functions/xusercheckprivilege.md)
- [Client-side use of XBOX services user privileges](/services/xbox-services/fundamentals/identity/privileges/concepts/live-user-privileges-client.md)
- [XUserPrivilegeOptions](/reference/system/xuser/enums/xuserprivilegeoptions.md)
