--- title: "Profile" slug: "081-core-profile" updated: 2025-05-23T22:37:16Z published: 2025-05-23T22:37:16Z canonical: "docs.developer.comcast.com/081-core-profile" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.developer.comcast.com/llms.txt > Use this file to discover all available pages before exploring further. # Profile **Profile Module 0.8.1 | Core SDK** ## Overview Methods for getting information about the current user/account profile ## OpenRPC Firebolt APIs are maintained in the [rdkcentral/firebolt-core-sdk](https://github.com/rdkcentral/firebolt-core-sdk) GitHub repository. You can see this API in the [profile.json](https://github.com/rdkcentral/firebolt-core-sdk/blob/main/src/modules/profile.json) OpenRPC JSON-Schema document. ## Usage To use the Profile module, you can import it into your project from the Firebolt SDK: ``` import { Profile } from '@firebolt-js/sdk' ``` ## Methods ### approveContentRating Verifies that the current profile should have access to mature/adult content. ``` function approveContentRating(): Promise ``` Promise resolution: | Type | Description | | --- | --- | | `boolean` | Whether or not to allow access | **Examples** Default Example JavaScript: ``` import { Profile } from '@firebolt-js/sdk' Profile.approveContentRating() .then(allow => { console.log(allow) }) ``` Value of `allow`: ``` false ``` **JSON-RPC:** Request: ``` { "jsonrpc": "2.0", "id": 1, "method": "profile.approveContentRating", "params": {} } ``` Response: ``` { "jsonrpc": "2.0", "id": 1, "result": false } ``` --- ### approvePurchase Verifies that the current profile should have access to making purchases. ``` function approvePurchase(): Promise ``` Promise resolution: | Type | Description | | --- | --- | | `boolean` | Whether or not to allow access | **Examples** Default Example JavaScript: ``` import { Profile } from '@firebolt-js/sdk' Profile.approvePurchase() .then(allow => { console.log(allow) }) ``` Value of `allow`: ``` false ``` **JSON-RPC:** Request: ``` { "jsonrpc": "2.0", "id": 1, "method": "profile.approvePurchase", "params": {} } ``` Response: ``` { "jsonrpc": "2.0", "id": 1, "result": false } ``` --- ### flags Get a map of profile flags for the current session. ``` function flags(): Promise ``` Promise resolution: | Type | Description | | --- | --- | | [`FlatMap`](/docs/081-core-Types-schemas#flatmap) | The profile flags. | **Examples** Default Example JavaScript: ``` import { Profile } from '@firebolt-js/sdk' Profile.flags() .then(flags => { console.log(flags) }) ``` Value of `flags`: ``` { "userExperience": "1000" } ``` **JSON-RPC:** Request: ``` { "jsonrpc": "2.0", "id": 1, "method": "profile.flags", "params": {} } ``` Response: ``` { "jsonrpc": "2.0", "id": 1, "result": { "userExperience": "1000" } } ``` ---