Skip to main content

앱 권한으로 쉐어포인트 이벤트 발생 시에 이벤트 리시버에서 예외처리 합니다.

SHIELDRM 애드인이 설치된 쉐어포인트 사이트에서 이벤트가 발생하면 이벤트 리시버에 알립니다.

이벤트가 발생 할 때 이벤트 리시버가 받는 properties 에는 ItemEventProperties 의 UserLoginName 값에 작업중인 사용자의 아이디가 포함되어 있습니다.

사용자가 작업 중일 때는 i:0#.f|membership|admin6@socam.info 값 과 같은 값이 포함되어 있으며 앱 권한으로 작업 한 이벤트는 i:0i.t|00000003-0000-0ff1-ce00-000000000000|app@sharepoint 값으로 이벤트가 발생합니다.

앱 권한으로 Graph API 등으로 파일에 접근 했을 때도 이벤트가 발생하므로 앱 권한으로 파일 접근 시에는 예외처리 합니다.

예)

{
"EventType": 10009,
"CorrelationId": "d0cc4df1-0f1f-4726-8974-a4ad7f1d9f67",
"ContextToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIwZTFiY2JjMy04MzkxLTQzNjctYjNiYi03OTNkNDMwMTc2OWIvZGV2c2hpZWxkcm1ldnRyZWNlaXZlci5henVyZXdlYnNpdGVzLm5ldEA0ZDYxNWFmOS0xZDA0LTRiY2MtOGU2Zi1jNmI2ZmUzMTEwZGQiLCJpc3MiOiIwMDAwMDAwMS0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDBANGQ2MTVhZjktMWQwNC00YmNjLThlNmYtYzZiNmZlMzExMGRkIiwiaWF0IjoxNjk2OTAyMTE2LCJuYmYiOjE2OTY5MDIxMTYsImV4cCI6MTY5NjkzMTIxNiwiYXBwY3R4Ijoie1wiQ2FjaGVLZXlcIjpcIlptTnRmNnZGU0ZGNW9lNkFCWVVJcTZIVitEUVFySEtTMWpoTmN3d3ZwaUE9XCIsXCJOZXh0Q2FjaGVLZXlcIjpudWxsLFwiU2VjdXJpdHlUb2tlblNlcnZpY2VVcmlcIjpcImh0dHBzOi8vYWNjb3VudHMuYWNjZXNzY29udHJvbC53aW5kb3dzLm5ldC90b2tlbnMvT0F1dGgvMlwifSIsImFwcGN0eHNlbmRlciI6IjAwMDAwMDAzLTAwMDAtMGZmMS1jZTAwLTAwMDAwMDAwMDAwMEA0ZDYxNWFmOS0xZDA0LTRiY2MtOGU2Zi1jNmI2ZmUzMTEwZGQiLCJpc2Jyb3dzZXJob3N0ZWRhcHAiOiJmYWxzZSJ9.8-SnzOvh6ZvpZ8l2fxJYlUzcz8O9p5BHtOryC02Jh4g",
"CultureLCID": 1042,
"UICultureLCID": 1042,
"ErrorCode": "",
"ErrorMessage": "",
"ItemEventProperties": {
"WebUrl": "https://socamresearch.sharepoint.com/sites/SampleTeam123",
"ListId": "b5f29cdc-4c4f-440c-8bdc-afc66fc534e3",
"ListTitle": "문서",
"ListItemId": 223,
"Versionless": false,
"UserDisplayName": "SharePoint 앱",
"UserLoginName": "i:0i.t|00000003-0000-0ff1-ce00-000000000000|app@sharepoint",
"IsBackgroundSave": false,
"CurrentUserId": 1073741822,
"BeforeUrl": "Shared Documents/333/30M_102.xlsx",
"AfterUrl": "Shared Documents/333/30M_104.xlsx",
"ExternalNotificationMessage": null,
"BeforeProperties": {},
"AfterProperties": {
"vti_namespacelistid": "{B5F29CDC-4C4F-440C-8BDC-AFC66FC534E3}",
"vti_timecreated": "2023-10-04T05:28:43",
"vti_moveop": 1,
"vti_pluggableparserversion": "16.0.0.24120",
"vti_streamSyncTokenSequenceNumber": 1485,
"vti_timelastwritten": "2023-10-04T05:29:40",
"vti_durablestreammetadatanextbsn": "100",
"vti_ertimecreated": "2023-10-04T05:28:43",
"vti_TimeOfLastCobaltVersionCreation": "2023-10-04T05:28:43",
"_Status": "",
"vti_docviznextbsn": "100",
"vti_writevalidationtoken": "NjR4Y6RMBumeHAvTAZJj4mZbQG0=",
"vti_level": 1,
"vti_contentversionisdirty": "true",
"vti_mediaserviceofficebundlegenerated": "TRUE",
"vti_nexttolasttimemodified": "2023-10-10T06:11:22",
"vti_filesize": 31352790,
"vti_contenttag": "{0AD71890-C127-43AB-A2B7-77B1C1E3AE89},13,5",
"vti_stickycachedpluggableparserprops": "Subject Keywords _Status vti_title _Author _Category ContentType _Comments",
"vti_parserversion": "16.0.0.24120",
"vti_lastbitscommit": "2;#8e6834b9-f899-4827-adcf-c9968930c41b;#30M_10.xlsx;#2cb40d2c-5602-4cff-b289-01a73555ac4e;#\"{0AD71890-C127-43AB-A2B7-77B1C1E3AE89},2\";#\"{0AD71890-C127-43AB-A2B7-77B1C1E3AE89},3\";#0x0236347863A44C06E99E1C0BD3019263E2665B406D;#31352790;#1",
"vti_cachedsupportspoundlinks": 1,
"Keywords": "",
"vti_supportsZipIt": "false",
"vti_decryptdeferred": "false",
"vti_sourcecontrolversion": "V4.0",
"vti_collabnextbsn": "100",
"vti_iplabelpromotionmoduleversion": 3,
"vti_sprocsschemaversion": "16.0.970.0",
"vti_listflags": 36028797027356820,
"Subject": "",
"vti_owshiddenversion": 6,
"vti_genericcontenttempnextbsn": "100",
"vti_iplabelpromotionversion": 5,
"vti_zipitempreviewnextbsnalloc": "100",
"vti_universalannotationnextbsnalloc": "100",
"vti_streamschema": 66,
"vti_shareflags": 0,
"vti_setuppathversion": 16,
"_Category": "",
"vti_ertimelastmodified": "2023-10-10T06:12:24",
"vti_zipitempreviewnextbsn": "100",
"vti_replid": "rid:{0AD71890-C127-43AB-A2B7-77B1C1E3AE89}",
"vti_parentid": "{8E6834B9-F899-4827-ADCF-C9968930C41B}",
"vti_folderitemcount": 0,
"vti_virusstatus": 0,
"vti_previewnextbsn": "234",
"vti_etag": "\"{0AD71890-C127-43AB-A2B7-77B1C1E3AE89},13\"",
"vti_modifiedby": "i:0#.f|membership|admin@socam.info",
"vti_lastbitssessionid": "2cb40d2c-5602-4cff-b289-01a73555ac4e",
"vti_mediaservicefastmetadata": "{\"billedEvents\":[],\"externalJobs\":[],\"officeBundle\":{\"ctag\":\"{0AD71890-C127-43AB-A2B7-77B1C1E3AE89},4,3\",\"fatalError\":true,\"errorInfo\":\"Server_ConversionFailed\",\"version\":\"0.0\",\"generationTime\":\"2023-10-04T07:19:06.8479271Z\",\"generationReason\":\"TransformApi\"}}",
"_Author": "Jos",
"ContentType": "",
"vti_candeleteversion": "true",
"vti_timelastmodified": "2023-10-10T06:12:24",
"vti_additionalstreamssize": "0",
"vti_rtag": "rt:0AD71890-C127-43AB-A2B7-77B1C1E3AE89@00000000013",
"vti_previewexists": "false",
"vti_areHybridOrphanHashedBlobsCleaned": "false",
"vti_priorversioncreationtime": "2023-10-10T06:12:24",
"vti_sourcecontrolcookie": "fp_internal",
"vti_iplabelowneremail": "7e82e70d-4386-419d-9dfd-6c8d6e6068fc@e1ce8392-74f0-4915-8901-1bf2bdd9b96b.rms.ap.aadrm.com",
"vti_title": "",
"vti_timelastwnssent": "2023-10-10T06:12:23",
"vti_mediaserviceobjectdetectorversions": "0",
"vti_excelrevisionlognextbsn": "100",
"vti_metadatanextbsn": "100",
"vti_dbschemaversion": "16.0.380.0",
"vti_iplabelid": "070b7e3a-bb66-47e0-8196-7d030d54190d",
"vti_internalversion": 3073,
"vti_previewnextbsnalloc": "234",
"vti_rmstemplateid": "d8565050-8c6e-477e-9018-6fdf53b1968b",
"vti_contentversion": 5,
"vti_genericcontenttempnextbsnalloc": "100",
"vti_nextbsn": "1076",
"vti_orphannextbsn": "100",
"vti_universalannotationnextbsn": "100",
"vti_canmaybeedit": "true",
"vti_docstoretype": 0,
"vti_collabnextbsnalloc": "100",
"vti_principalcount": 3,
"vti_thumbnailexists": "false",
"vti_docstoreversion": 13,
"vti_nextbsnallocated": "1076",
"ContentTypeId": "0x010100724F0BE72B337E40A6B1C8B6F37AE577",
"vti_compliancepreviewnextbsn": "100",
"vti_metainfoversion": 11,
"vti_foldersubfolderitemcount": 0,
"vti_listflags2": 229392,
"_Comments": "",
"vti_mediaservicemetadata": "{\"billedEvents\":[],\"externalJobs\":[],\"officeBundle\":{\"ctag\":\"{0AD71890-C127-43AB-A2B7-77B1C1E3AE89},4,3\",\"fatalError\":true,\"errorInfo\":\"Server_ConversionFailed\",\"version\":\"0.0\",\"generationTime\":\"2023-10-04T07:19:06.8479271Z\",\"generationReason\":\"TransformApi\"}}",
"vti_aspxpagesnextbsn": "100",
"vti_decryptskipreason": 0,
"vti_virusvendorid": 6396,
"vti_asyncpreviewnextbsn": "100",
"vti_author": "i:0#.f|membership|admin@socam.info",
"vti_complianceflags": 0
}
},
"ListEventProperties": null,
"WebEventProperties": null,
"SecurityEventProperties": null,
"AppEventProperties": null,
"EntityInstanceEventProperties": null
}