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 |
BinaryNullable |
The base64-encoded image content of the emoji. Supported formats include PNG and GIF. Inherited from teamworkHostedContent. |
contentType |
StringNullable |
The media type of the custom emoji content, such as image/png or image/gif. Inherited from teamworkHostedContent. |
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. This property is an alternate key and must not conflict with existing emoji names. |
id |
String |
The service-generated identifier of the custom emoji. Inherited from teamworkHostedContent. |
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",
"id": "String (identifier)",
"contentBytes": "Binary",
"contentType": "String",
"displayName": "String",
"createdDateTime": "String (timestamp)",
"createdBy": {
"@odata.type": "microsoft.graph.customEmojiFromIdentitySet"
}
}
Relationships
Relationships is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
| Relationship | Type | Description |
|---|---|---|
createdBy |
customEmojiFromIdentitySet |
Related createdBy data exposed by this resource. |
Graph 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
|
DELETE
/teamwork/messaging/customEmojis/{displayName}
|
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
using Azure.Identity;
using Microsoft.Graph;
var scopes = new[] { "TeamworkCustomEmoji.Create" };
var credential = new InteractiveBrowserCredential(
new InteractiveBrowserCredentialOptions
{
ClientId = "YOUR_CLIENT_ID",
TenantId = "YOUR_TENANT_ID",
RedirectUri = new Uri("http://localhost")
});
var graphClient = new GraphServiceClient(credential, scopes);
var response = await graphClient
.WithUrl("https://graph.microsoft.com/v1.0/teamwork/messaging/customEmojis")
.GetAsync();
import { Client } from "@microsoft/microsoft-graph-client";
import { InteractiveBrowserCredential } from "@azure/identity";
const credential = new InteractiveBrowserCredential({
clientId: "YOUR_CLIENT_ID",
tenantId: "YOUR_TENANT_ID",
redirectUri: "http://localhost"
});
const token = await credential.getToken(["TeamworkCustomEmoji.Create"]);
const client = Client.init({
authProvider: (done) => done(null, token.token)
});
const response = await client.api("/teamwork/messaging/customEmojis").get();
Connect-MgGraph -Scopes "TeamworkCustomEmoji.Create"
Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/teamwork/messaging/customEmojis"
from azure.identity import InteractiveBrowserCredential
import requests
credential = InteractiveBrowserCredential(
client_id="YOUR_CLIENT_ID",
tenant_id="YOUR_TENANT_ID"
)
token = credential.get_token("TeamworkCustomEmoji.Create")
response = requests.get(
"https://graph.microsoft.com/v1.0/teamwork/messaging/customEmojis",
headers={"Authorization": f"Bearer {token.token}"}
)
print(response.json())
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. 2 documented Microsoft Graph REST methods require 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.