Hello,
I'm planning to implement a portal for TLS enforcement. Therefore I need to get a List of all members of a specific email group (later I'll implement a kind of self-service portal for certain users to maintain this list).
What I currently have:
curl -k -b cookie.txt -H "Content-Type: application/json" -X GET -d '{"reqAction":0,"sortingDirection":2}' https://<my_fortimail&...omain>_TLS_enforce/
Unfortunately I'm only getting the objectID, the name and description of this email group but not the members which I'd need.
The API documentation doesn't help me either.
Thanks in advance!
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Hi
same problem here with email-address groups. Did you get it ?
greetings
lars
Problem still not solved...
Any suggestions?
If not possible, I'll go the ugly way with ssh and CLI commands.
Hi
I found this for EmailAdressGroups
its for internal domain "a.com" and group "grp"
**CREATE** curl -s -k -b cookie.txt -H 'Content-Type: application/json' -X POST -d '' [link]https://$[/link]{FMLIP}/api/v1/Domain/a.com/ProfEmail_address_group/grp **MODIFY Comment** curl -s -k -b cookie.txt -H 'Content-Type: application/json' -X POST -d '{"reqAction" : 5, "comment" : "mycomment"}' [link]https://$[/link]{FMLIP}/api/v1/Domain/a.com/ProfEmail_address_group/grp **LIST Content** curl -s -k -b cookie.txt -H "Content-Type: application/json" -X GET [link]https://$[/link]{FMLIP}/api/v1/Domain/a.com/ProfEmail_address_group curl -s -k -b cookie.txt -H 'Content-Type: application/json' -X POST -d '{"reqAction" : "1", "parent_mkey" : "grp", "mdomain" : "a.com"}' [link]https://$[/link]{FMLIP}/api/v1/ProfEmail_address_groupEmailAddressGroupMember curl -s -k -b cookie.txt -H 'Content-Type: application/json' -X POST -d '{"reqAction" : "1", "parent_mkey" : "grp" }' [link]https://$[/link]{FMLIP}/api/v1/Domain/a.com/ProfEmail_address_groupEmailAddressGroupMemberCollection **MODIFY Content** ADD curl -s -k -b cookie.txt -H "Content-Type: application/json" -X POST [link]https://$[/link]{FMLIP}/api/v1/Domain/a.com/ProfEmail_address_group/grp/ProfEmail_address_groupEmailAddressGroupMember/a@a.com DELETE curl -s -k -b cookie.txt -H "Content-Type: application/json" -X DELETE [link]https://$[/link]{FMLIP}/api/v1/Domain/a.com/ProfEmail_address_group/grp/ProfEmail_address_groupEmailAddressGroupMember/a@a.com **DELETE curl -s -k -b cookie.txt -H 'Content-Type: application/json' -X DELETE -d '' [link]https://$[/link]{FMLIP}/api/v1/Domain/a.com/ProfEmail_address_group/grp
greetings
lars
Thanks!
I will try and report soon.
Works great!
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1528 | |
1020 | |
749 | |
443 | |
209 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.