The aad siteclassification enable command currently uses the beta/settings and beta/directorySettingTemplates endpoints in its implementation, this should be updated to use the v1.0/groupSettings and `beta/groupSettingTemplate endpoints.
|
const requestOptions: any = { |
|
url: `${this.resource}/beta/settings`, |
|
headers: { |
|
accept: 'application/json;odata.metadata=none', |
|
'content-type': 'application/json' |
|
}, |
|
responseType: 'json', |
|
data: updatedDirSettings |
|
}; |
Note: The /beta version of this API only applies to groups. The /v1.0 version of this API has been renamed to Update groupSettings.
beta docs: https://docs.microsoft.com/en-us/graph/api/directorysetting-update?view=graph-rest-beta&tabs=http
v1.0 docs: https://docs.microsoft.com/en-us/graph/api/groupsetting-update?view=graph-rest-1.0&tabs=http
|
const requestOptions: any = { |
|
url: `${this.resource}/beta/directorySettingTemplates`, |
|
headers: { |
|
accept: 'application/json;odata.metadata=none' |
|
}, |
|
responseType: 'json' |
|
}; |
Note: The /beta version of this API is only applies to groups. The /v1.0 version of this API has been renamed to Get groupSettingTemplate.
beta docs: https://docs.microsoft.com/en-us/graph/api/directorysettingtemplate-get?view=graph-rest-beta&tabs=http
v1.0 docs: https://docs.microsoft.com/en-us/graph/api/resources/groupsettingtemplate?view=graph-rest-1.0
The
aad siteclassification enablecommand currently uses thebeta/settingsandbeta/directorySettingTemplatesendpoints in its implementation, this should be updated to use thev1.0/groupSettingsand `beta/groupSettingTemplate endpoints.cli-microsoft365/src/m365/aad/commands/siteclassification/siteclassification-enable.ts
Lines 114 to 122 in 1bae1ad
beta docs: https://docs.microsoft.com/en-us/graph/api/directorysetting-update?view=graph-rest-beta&tabs=http
v1.0 docs: https://docs.microsoft.com/en-us/graph/api/groupsetting-update?view=graph-rest-1.0&tabs=http
cli-microsoft365/src/m365/aad/commands/siteclassification/siteclassification-enable.ts
Lines 40 to 46 in 1bae1ad
beta docs: https://docs.microsoft.com/en-us/graph/api/directorysettingtemplate-get?view=graph-rest-beta&tabs=http
v1.0 docs: https://docs.microsoft.com/en-us/graph/api/resources/groupsettingtemplate?view=graph-rest-1.0