我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

获取Civi CRM用户的角色ID

I'm trying to put some rules in civiCRM hook that depends on the role ID of the user. I managed to get the user id from the Civi Contact ID by running this API call

$result = civicrm_api3('Contact', 'get', array(
   'sequential' => 1,
   'id' => 208,
));

But I'm not able to access the role id of the user. The role ID is mapped in the Drupal database. Actually I'm trying to hide certain tabs on the admin tab depending on the user's role.

近期文章

  • 查询Laravel的关系
  • PDO准备了PHP问题的陈述
  • 使用ajax从数据库获取对帖子的评论
  • Laravel使用Request params更改绑定
  • 如何配置socket_set_option参数?
  • Atom - IDE包 - 查找引用不起作用(PHP)
  • 使用测试数据库设置Laravel Dusk
  • 从php获取服务器上的Windows系统用户名[复制]
  • PHP生成0到36之间的数字可证明是公平的
  • 多个laravel地平线工作者在同一队列上侦听
  • 如何在数据库Laravel中的Products表中查询Seller Id
  • Zend框架 - 如何告诉好看的网址去静态网址?
  • 使用JavaScript删除屏幕大小低于某个像素的div
  • 现有图像未以编辑形式显示以在laravel中更新(5.8)
  • 检查数据库中数据的查看状态并停止链接的闪烁
  • Laravel - 如何从视图中导出具有Eloquent关系的Excel数据?
  • 如何使用PHP跟踪gmail中的电子邮件
  • 显示使用FOSUserBundle连接用户
  • 总计一天的金额
  • 由于JSON中的奇怪OBJECT名称,难以以PHP数组的形式获取JSON数据

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华