@@ -84,6 +84,7 @@ export const ConfluenceBlock: BlockConfig<ConfluenceResponse> = {
8484 'write:content.property:confluence' ,
8585 'read:hierarchical-content:confluence' ,
8686 'read:content.metadata:confluence' ,
87+ 'read:user:confluence' ,
8788 ] ,
8889 placeholder : 'Select Confluence account' ,
8990 required : true ,
@@ -433,6 +434,8 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
433434 // Space Operations
434435 { label : 'Get Space' , id : 'get_space' } ,
435436 { label : 'List Spaces' , id : 'list_spaces' } ,
437+ // User Operations
438+ { label : 'Get User' , id : 'get_user' } ,
436439 ] ,
437440 value : ( ) => 'read' ,
438441 } ,
@@ -472,6 +475,7 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
472475 'write:content.property:confluence' ,
473476 'read:hierarchical-content:confluence' ,
474477 'read:content.metadata:confluence' ,
478+ 'read:user:confluence' ,
475479 ] ,
476480 placeholder : 'Select Confluence account' ,
477481 required : true ,
@@ -514,6 +518,7 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
514518 'list_spaces' ,
515519 'get_pages_by_label' ,
516520 'list_space_labels' ,
521+ 'get_user' ,
517522 ] ,
518523 not : true ,
519524 } ,
@@ -560,6 +565,7 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
560565 'list_spaces' ,
561566 'get_pages_by_label' ,
562567 'list_space_labels' ,
568+ 'get_user' ,
563569 ] ,
564570 not : true ,
565571 } ,
@@ -621,6 +627,14 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
621627 required : true ,
622628 condition : { field : 'operation' , value : 'get_page_version' } ,
623629 } ,
630+ {
631+ id : 'accountId' ,
632+ title : 'Account ID' ,
633+ type : 'short-input' ,
634+ placeholder : 'Enter Atlassian account ID' ,
635+ required : true ,
636+ condition : { field : 'operation' , value : 'get_user' } ,
637+ } ,
624638 {
625639 id : 'propertyKey' ,
626640 title : 'Property Key' ,
@@ -922,6 +936,8 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
922936 // Space Tools
923937 'confluence_get_space' ,
924938 'confluence_list_spaces' ,
939+ // User Tools
940+ 'confluence_get_user' ,
925941 ] ,
926942 config : {
927943 tool : ( params ) => {
@@ -999,6 +1015,9 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
9991015 return 'confluence_get_space'
10001016 case 'list_spaces' :
10011017 return 'confluence_list_spaces'
1018+ // User Operations
1019+ case 'get_user' :
1020+ return 'confluence_get_user'
10021021 default :
10031022 return 'confluence_retrieve'
10041023 }
@@ -1013,6 +1032,7 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
10131032 attachmentComment,
10141033 blogPostId,
10151034 versionNumber,
1035+ accountId,
10161036 propertyKey,
10171037 propertyValue,
10181038 propertyId,
@@ -1152,6 +1172,15 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
11521172 }
11531173 }
11541174
1175+ if ( operation === 'get_user' ) {
1176+ return {
1177+ credential : oauthCredential ,
1178+ operation,
1179+ accountId : accountId ? String ( accountId ) . trim ( ) : undefined ,
1180+ ...rest ,
1181+ }
1182+ }
1183+
11551184 return {
11561185 credential : oauthCredential ,
11571186 pageId : effectivePageId || undefined ,
@@ -1171,6 +1200,7 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
11711200 spaceId : { type : 'string' , description : 'Space identifier' } ,
11721201 blogPostId : { type : 'string' , description : 'Blog post identifier' } ,
11731202 versionNumber : { type : 'number' , description : 'Page version number' } ,
1203+ accountId : { type : 'string' , description : 'Atlassian account ID' } ,
11741204 propertyKey : { type : 'string' , description : 'Property key/name' } ,
11751205 propertyValue : { type : 'json' , description : 'Property value (JSON)' } ,
11761206 title : { type : 'string' , description : 'Page or blog post title' } ,
@@ -1242,6 +1272,13 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
12421272 propertyId : { type : 'string' , description : 'Property identifier' } ,
12431273 propertyKey : { type : 'string' , description : 'Property key' } ,
12441274 propertyValue : { type : 'json' , description : 'Property value' } ,
1275+ // User Results
1276+ accountId : { type : 'string' , description : 'Atlassian account ID' } ,
1277+ displayName : { type : 'string' , description : 'User display name' } ,
1278+ email : { type : 'string' , description : 'User email address' } ,
1279+ accountType : { type : 'string' , description : 'Account type (atlassian, app, customer)' } ,
1280+ profilePicture : { type : 'string' , description : 'Path to user profile picture' } ,
1281+ publicName : { type : 'string' , description : 'User public name' } ,
12451282 // Pagination
12461283 nextCursor : { type : 'string' , description : 'Cursor for fetching next page of results' } ,
12471284 } ,
0 commit comments