IndustryData-ReferenceDefinition.ReadWrite.All
Allows the app to read and write reference definitions without a signed-in user.
Permission Details
Manage reference definitions
Allows the app to read and write reference definitions without a signed-in user.
bda16293-63d3-45b7-b16b-833841d27d56
Manage reference definitions
Allows the app to read and write reference definitions on behalf of the signed-in user.
a757d430-be6d-430f-af57-28aabe79d247
Properties
Properties is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
| Property | Type | Description |
|---|---|---|
code |
String |
The code value for the definition that must be unique within the referenceType. |
createdDateTime |
DateTimeOffsetRead-only |
The date and time when the definition was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. |
displayName |
StringNullable |
A human-readable representation of the reference code value for display in a user interface. |
isDisabled |
Boolean |
Indicates whether the definition is disabled. |
lastModifiedDateTime |
DateTimeOffsetRead-only |
The date and time when the definition was most recently changed. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. |
referenceType |
String |
The categorical type for a collection of enumerated values. |
sortIndex |
Int32 |
The index that specifies the order in which to present the definition to the user. Must be unique within the referenceType. |
source |
StringRead-only |
The standards body or organization source which defined the code. |
id |
string |
The unique identifier for an entity. Read-only. |
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.industryData.referenceDefinition",
"code": "String",
"createdDateTime": "String (timestamp)",
"displayName": "String",
"isDisabled": "Boolean",
"lastModifiedDateTime": "String (timestamp)",
"referenceType": "String",
"sortIndex": "Int32",
"source": "String"
}
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.
Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsMicrosoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models.IndustryData;
var requestBody = new ReferenceDefinition
{
OdataType = "#microsoft.graph.industryData.referenceDefinition",
ReferenceType = "RefGradeLevel",
Code = "TestGrade",
IsDisabled = false,
SortIndex = 300,
DisplayName = "New Test Grade Level",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.External.IndustryData.ReferenceDefinitions.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const referenceDefinition = {
'@odata.type': '#microsoft.graph.industryData.referenceDefinition',
referenceType: 'RefGradeLevel',
code: 'TestGrade',
isDisabled: false,
sortIndex: 300,
displayName: 'New Test Grade Level'
};
await client.api('/external/industryData/referenceDefinitions')
.version('beta')
.post(referenceDefinition);
Import-Module Microsoft.Graph.Beta.Search
$params = @{
"@odata.type" = "#microsoft.graph.industryData.referenceDefinition"
referenceType = "RefGradeLevel"
code = "TestGrade"
isDisabled = $false
sortIndex = 300
displayName = "New Test Grade Level"
}
New-MgBetaExternalIndustryDataReferenceDefinition -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.models.industry_data.reference_definition import ReferenceDefinition
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = ReferenceDefinition(
odata_type = "#microsoft.graph.industryData.referenceDefinition",
reference_type = "RefGradeLevel",
code = "TestGrade",
is_disabled = False,
sort_index = 300,
display_name = "New Test Grade Level",
)
result = await graph_client.external.industry_data.reference_definitions.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 Application permissions or delegated permissions and search for IndustryData-ReferenceDefinition.ReadWrite.All
Grant Admin Consent
Application permissions always require admin consent.