TeamworkCustomEmoji.Create
Create custom emoji on behalf of the signed-in user.
In short
TeamworkCustomEmoji.Create is a delegated permission in the Microsoft Graph API, grouped under the TeamworkCustomEmoji category. Create custom emoji on behalf of the signed-in user. It grants read-only access to resources. Users can consent to this permission during sign-in.
Permission Details
Create custom emoji
Create custom emoji on behalf of the signed-in user.
72464cd4-58fd-4116-8a9e-b74757574757
Properties
Properties is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
| Property | Type | Description |
|---|---|---|
contentBytes |
String |
The base64-encoded image content of the emoji. Supported formats include PNG and GIF. |
createdBy |
customEmojiFromIdentitySet |
Identity of the user who created the emoji. |
createdDateTime |
DateTimeOffset |
The date and time when the emoji was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024, is 2024-01-01T00:00:00Z. |
displayName |
String |
The unique display name of the custom emoji. Key. Must be unique and must not conflict with existing emoji names. |
JSON Representation
JSON representation is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
{
"@odata.type": "#microsoft.graph.teamworkCustomEmoji",
"displayName": "String (identifier)",
"contentBytes": "String",
"createdDateTime": "String (timestamp)",
"createdBy": {
"@odata.type": "microsoft.graph.customEmojiFromIdentitySet"
}
}
Relationships
Relationships metadata is not available for this permission mapping.
View resource documentationGraph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
No API methods available for this version.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
| Methods |
|---|
POST
/teamwork/messaging/customEmojis
|
Microsoft Graph PowerShell v1.0 commands are not available from refreshed Microsoft Learn PowerShell snippets for this permission.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsMicrosoft Graph PowerShell beta commands are not available from refreshed Microsoft Learn PowerShell snippets for this permission.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsCode Examples
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models;
var requestBody = new TeamworkCustomEmoji
{
DisplayName = "thumbsup_custom",
ContentBytes = "iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAABGhJREFU...",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Teamwork.Messaging.CustomEmojis.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const teamworkCustomEmoji = {
displayName: 'thumbsup_custom',
contentBytes: 'iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAABGhJREFU...'
};
await client.api('/teamwork/messaging/customEmojis')
.version('beta')
.post(teamworkCustomEmoji);
Connect-MgGraph -Scopes "TeamworkCustomEmoji.Create"
Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/teamwork/messaging/customEmojis"
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.models.teamwork_custom_emoji import TeamworkCustomEmoji
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = TeamworkCustomEmoji(
display_name = "thumbsup_custom",
content_bytes = "iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAABGhJREFU...",
)
result = await graph_client.teamwork.messaging.custom_emojis.post(request_body)
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Delegated permissions and search for TeamworkCustomEmoji.Create
Grant Admin Consent
Users can consent to this permission during sign-in.
Frequently asked questions
What is the TeamworkCustomEmoji.Create Microsoft Graph permission?
TeamworkCustomEmoji.Create is a delegated permission in the Microsoft Graph API, grouped under the TeamworkCustomEmoji category. Create custom emoji on behalf of the signed-in user. It grants read-only access to resources. Users can consent to this permission during sign-in. It is mapped to the Microsoft Graph teamworkcustomemoji resource type. 1 documented Microsoft Graph REST method requires it.
Is TeamworkCustomEmoji.Create an application or a delegated permission?
TeamworkCustomEmoji.Create is a delegated permission only. It grants access on behalf of a signed-in user and cannot be used for app-only access.
Does TeamworkCustomEmoji.Create require admin consent?
Users can consent to this permission during sign-in.
What is the permission ID (GUID) for TeamworkCustomEmoji.Create?
For TeamworkCustomEmoji.Create, the delegated (OAuth2 scope) ID is 72464cd4-58fd-4116-8a9e-b74757574757. These are the real Microsoft Graph identifiers and can be used directly in an app registration manifest.